xref: /netbsd-src/external/gpl3/gcc.old/dist/gcc/main.c (revision 8feb0f0b7eaff0608f8350bbfa3098827b4bb91b)
11debfc3dSmrg /* main.c: defines main() for cc1, cc1plus, etc.
2*8feb0f0bSmrg    Copyright (C) 2007-2020 Free Software Foundation, Inc.
31debfc3dSmrg 
41debfc3dSmrg This file is part of GCC.
51debfc3dSmrg 
61debfc3dSmrg GCC is free software; you can redistribute it and/or modify it under
71debfc3dSmrg the terms of the GNU General Public License as published by the Free
81debfc3dSmrg Software Foundation; either version 3, or (at your option) any later
91debfc3dSmrg version.
101debfc3dSmrg 
111debfc3dSmrg GCC is distributed in the hope that it will be useful, but WITHOUT ANY
121debfc3dSmrg WARRANTY; without even the implied warranty of MERCHANTABILITY or
131debfc3dSmrg FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
141debfc3dSmrg for more details.
151debfc3dSmrg 
161debfc3dSmrg You should have received a copy of the GNU General Public License
171debfc3dSmrg along with GCC; see the file COPYING3.  If not see
181debfc3dSmrg <http://www.gnu.org/licenses/>.  */
191debfc3dSmrg 
201debfc3dSmrg #include "config.h"
211debfc3dSmrg #include "system.h"
221debfc3dSmrg #include "coretypes.h"
231debfc3dSmrg #include "tm.h"
241debfc3dSmrg #include "diagnostic-core.h"
251debfc3dSmrg #include "toplev.h"
261debfc3dSmrg 
271debfc3dSmrg int main (int argc, char **argv);
281debfc3dSmrg 
291debfc3dSmrg /* We define main() to call toplev::main(), which is defined in toplev.c.
301debfc3dSmrg    We do this in a separate file in order to allow the language front-end
311debfc3dSmrg    to define a different main(), if it so desires.  */
321debfc3dSmrg 
331debfc3dSmrg int
main(int argc,char ** argv)341debfc3dSmrg main (int argc, char **argv)
351debfc3dSmrg {
361debfc3dSmrg   toplev toplev (NULL, /* external_timer */
371debfc3dSmrg 		 true /* init_signals */);
381debfc3dSmrg 
391debfc3dSmrg   return toplev.main (argc, argv);
401debfc3dSmrg }
41