]> gcc.gnu.org Git - gcc.git/commitdiff
lex.c (lang_init_options): New function.
authorRichard Henderson <rth@cygnus.com>
Sun, 7 Jun 1998 14:07:25 +0000 (07:07 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Sun, 7 Jun 1998 14:07:25 +0000 (07:07 -0700)
        * lex.c (lang_init_options): New function.
        (lang_init): Remove flag_exceptions == 2 hack.

From-SVN: r20275

gcc/cp/ChangeLog
gcc/cp/lex.c

index cec9536bf72370fe319c046d5825db9e3afc2e2d..8d9031a4f8a194a57ff7df2c7eacccbbfe8d89ff 100644 (file)
@@ -1,3 +1,8 @@
+1998-06-07  Richard Henderson  <rth@cygnus.com>
+
+       * lex.c (lang_init_options): New function.
+       (lang_init): Remove flag_exceptions == 2 hack.
+       
 1998-06-05  Jason Merrill  <jason@yorick.cygnus.com>
 
        * search.c (envelope_add_decl): Tweak for implicit typename.
index 7f5693bea9be17db814f576d7c3bbe6ad39dbfd2..521155975c66c008eb016b5921a528134f452bbd 100644 (file)
@@ -395,6 +395,13 @@ char *cplus_tree_code_name[] = {
 \f
 /* toplev.c needs to call these.  */
 
+void
+lang_init_options ()
+{
+  /* Default exceptions on.  */
+  flag_exceptions = 1;
+}
+
 void
 lang_init ()
 {
@@ -404,10 +411,6 @@ lang_init ()
   put_back (check_newline ());
   if (flag_gnu_xref) GNU_xref_begin (input_filename);
   init_repo (input_filename);
-
-  /* See comments in toplev.c before the call to lang_init.  */
-  if (flag_exceptions == 2)
-    flag_exceptions = 1;
 }
 
 void
This page took 0.078708 seconds and 5 git commands to generate.