main.c 1.2 KB

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