1c9ab9aeobrien/* main.c: defines main() for cc1, cc1plus, etc.
2c9ab9aeobrien
3c9ab9aeobrienThis file is part of GCC.
4c9ab9aeobrien
5c9ab9aeobrienGCC is free software; you can redistribute it and/or modify it under
6c9ab9aeobrienthe terms of the GNU General Public License as published by the Free
7c9ab9aeobrienSoftware Foundation; either version 2, or (at your option) any later
8c9ab9aeobrienversion.
9c9ab9aeobrien
10c9ab9aeobrienGCC is distributed in the hope that it will be useful, but WITHOUT ANY
11c9ab9aeobrienWARRANTY; without even the implied warranty of MERCHANTABILITY or
12c9ab9aeobrienFITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
13c9ab9aeobrienfor more details.
14c9ab9aeobrien
15c9ab9aeobrienYou should have received a copy of the GNU General Public License
16c9ab9aeobrienalong with GCC; see the file COPYING.  If not, write to the Free
171f9ea4dkanSoftware Foundation, 51 Franklin Street, Fifth Floor, Boston, MA
181f9ea4dkan02110-1301, USA.  */
19c9ab9aeobrien
20c9ab9aeobrien#include "config.h"
21c9ab9aeobrien#include "system.h"
225e00ec7kan#include "coretypes.h"
235e00ec7kan#include "tm.h"
24c9ab9aeobrien#include "toplev.h"
25c9ab9aeobrien
265e00ec7kanint main (int argc, char **argv);
27c9ab9aeobrien
28c9ab9aeobrien/* We define main() to call toplev_main(), which is defined in toplev.c.
29c9ab9aeobrien   We do this in a separate file in order to allow the language front-end
30c9ab9aeobrien   to define a different main(), if it so desires.  */
31c9ab9aeobrien
32c9ab9aeobrienint
335e00ec7kanmain (int argc, char **argv)
34c9ab9aeobrien{
355e00ec7kan  return toplev_main (argc, (const char **) argv);
36c9ab9aeobrien}
37