xref: /dflybsd-src/contrib/gcc-4.7/gcc/main.c (revision 04febcfb30580676d3e95f58a16c5137ee478b32)
1*e4b17023SJohn Marino /* main.c: defines main() for cc1, cc1plus, etc.
2*e4b17023SJohn Marino    Copyright (C) 2007, 2010  Free Software Foundation, Inc.
3*e4b17023SJohn Marino 
4*e4b17023SJohn Marino This file is part of GCC.
5*e4b17023SJohn Marino 
6*e4b17023SJohn Marino GCC is free software; you can redistribute it and/or modify it under
7*e4b17023SJohn Marino the terms of the GNU General Public License as published by the Free
8*e4b17023SJohn Marino Software Foundation; either version 3, or (at your option) any later
9*e4b17023SJohn Marino version.
10*e4b17023SJohn Marino 
11*e4b17023SJohn Marino GCC is distributed in the hope that it will be useful, but WITHOUT ANY
12*e4b17023SJohn Marino WARRANTY; without even the implied warranty of MERCHANTABILITY or
13*e4b17023SJohn Marino FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
14*e4b17023SJohn Marino for more details.
15*e4b17023SJohn Marino 
16*e4b17023SJohn Marino You should have received a copy of the GNU General Public License
17*e4b17023SJohn Marino along with GCC; see the file COPYING3.  If not see
18*e4b17023SJohn Marino <http://www.gnu.org/licenses/>.  */
19*e4b17023SJohn Marino 
20*e4b17023SJohn Marino #include "config.h"
21*e4b17023SJohn Marino #include "system.h"
22*e4b17023SJohn Marino #include "coretypes.h"
23*e4b17023SJohn Marino #include "tm.h"
24*e4b17023SJohn Marino #include "diagnostic-core.h"
25*e4b17023SJohn Marino #include "toplev.h"
26*e4b17023SJohn Marino 
27*e4b17023SJohn Marino int main (int argc, char **argv);
28*e4b17023SJohn Marino 
29*e4b17023SJohn Marino /* We define main() to call toplev_main(), which is defined in toplev.c.
30*e4b17023SJohn Marino    We do this in a separate file in order to allow the language front-end
31*e4b17023SJohn Marino    to define a different main(), if it so desires.  */
32*e4b17023SJohn Marino 
33*e4b17023SJohn Marino int
main(int argc,char ** argv)34*e4b17023SJohn Marino main (int argc, char **argv)
35*e4b17023SJohn Marino {
36*e4b17023SJohn Marino   return toplev_main (argc, argv);
37*e4b17023SJohn Marino }
38