main.c revision 132718
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 1790075SobrienSoftware Foundation, 59 Temple Place - Suite 330, Boston, MA 1890075Sobrien02111-1307, USA. */ 1990075Sobrien 2090075Sobrien#include "config.h" 2190075Sobrien#include "system.h" 2290075Sobrien#include "coretypes.h" 2390075Sobrien#include "tm.h" 2490075Sobrien#include "toplev.h" 2590075Sobrien 2690075Sobrienint 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 3390075Sobrienmain (int argc, char **argv) 3490075Sobrien{ 3590075Sobrien return toplev_main (argc, (const char **) argv); 3690075Sobrien} 3790075Sobrien