190075Sobrien/* main.c: defines main() for cc1, cc1plus, etc.
290075Sobrien
390075SobrienThis file is part of GCC.
490075Sobrien
590075SobrienGCC is free software; you can redistribute it and/or modify it under
690075Sobrienthe terms of the GNU General Public License as published by the Free
790075SobrienSoftware Foundation; either version 2, or (at your option) any later
890075Sobrienversion.
990075Sobrien
1090075SobrienGCC is distributed in the hope that it will be useful, but WITHOUT ANY
1190075SobrienWARRANTY; without even the implied warranty of MERCHANTABILITY or
1290075SobrienFITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
1390075Sobrienfor more details.
1490075Sobrien
1590075SobrienYou should have received a copy of the GNU General Public License
1690075Sobrienalong with GCC; see the file COPYING.  If not, write to the Free
17169689SkanSoftware Foundation, 51 Franklin Street, Fifth Floor, Boston, MA
18169689Skan02110-1301, USA.  */
1990075Sobrien
2090075Sobrien#include "config.h"
2190075Sobrien#include "system.h"
22132718Skan#include "coretypes.h"
23132718Skan#include "tm.h"
2490075Sobrien#include "toplev.h"
2590075Sobrien
26132718Skanint main (int argc, char **argv);
2790075Sobrien
2890075Sobrien/* We define main() to call toplev_main(), which is defined in toplev.c.
2990075Sobrien   We do this in a separate file in order to allow the language front-end
3090075Sobrien   to define a different main(), if it so desires.  */
3190075Sobrien
3290075Sobrienint
33132718Skanmain (int argc, char **argv)
3490075Sobrien{
35132718Skan  return toplev_main (argc, (const char **) argv);
3690075Sobrien}
37