/* main.c: defines main() for cc1, cc1plus, etc.
- Copyright (C) 2007, 2010 Free Software Foundation, Inc.
+ Copyright (C) 2007-2021 Free Software Foundation, Inc.
This file is part of GCC.
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 */);
+
+ int r = toplev.main (argc, argv);
+#if CHECKING_P
+ toplev.finalize ();
+#endif
+
+ return r;
}