]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/main.c
Update copyright years.
[thirdparty/gcc.git] / gcc / main.c
index 3e6c41c39a173ba1a9ce230ffbd27dbe143ec613..ab0244b18513093b1685a799f910d045ae8e617e 100644 (file)
@@ -1,5 +1,5 @@
 /* main.c: defines main() for cc1, cc1plus, etc.
-   Copyright (C) 2007  Free Software Foundation, Inc.
+   Copyright (C) 2007-2021 Free Software Foundation, Inc.
 
 This file is part of GCC.
 
@@ -21,16 +21,20 @@ along with GCC; see the file COPYING3.  If not see
 #include "system.h"
 #include "coretypes.h"
 #include "tm.h"
+#include "diagnostic-core.h"
 #include "toplev.h"
 
 int main (int argc, char **argv);
 
-/* We define main() to call toplev_main(), which is defined in toplev.c.
+/* We define main() to call toplev::main(), which is defined in toplev.c.
    We do this in a separate file in order to allow the language front-end
    to define a different main(), if it so desires.  */
 
 int
 main (int argc, char **argv)
 {
-  return toplev_main (argc, argv);
+  toplev toplev (NULL, /* external_timer */
+                true /* init_signals */);
+
+  return toplev.main (argc, argv);
 }