aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp
diff options
context:
space:
mode:
authorJeffrey A Law <law@cygnus.com>1997-10-23 01:29:14 +0000
committerJeff Law <law@gcc.gnu.org>1997-10-22 19:29:14 -0600
commit56bf1fd97aba55f54aa2ccc73768fc6160210d6e (patch)
treebabd25bf79e9fcc763c8463bebd28400d95b08da /gcc/cp
parent1181d2d55377707551ac43b20ca7ebb4e253dddc (diff)
downloadgcc-56bf1fd97aba55f54aa2ccc73768fc6160210d6e.zip
gcc-56bf1fd97aba55f54aa2ccc73768fc6160210d6e.tar.gz
gcc-56bf1fd97aba55f54aa2ccc73768fc6160210d6e.tar.bz2
toplev.c (flag_exceptions): Default value is 2.
* toplev.c (flag_exceptions): Default value is 2. (compile_file): If flag_exceptions still has the value 2, then set it to 0. * lex.c (lang_init): Enable flag_exceptions by default if no command line switch was specified. Gross hacks to allow front-ends to override -fexceptions. From-SVN: r16152
Diffstat (limited to 'gcc/cp')
-rw-r--r--gcc/cp/ChangeLog.egcs5
-rw-r--r--gcc/cp/lex.c4
2 files changed, 9 insertions, 0 deletions
diff --git a/gcc/cp/ChangeLog.egcs b/gcc/cp/ChangeLog.egcs
index ddefd5c..3185f28 100644
--- a/gcc/cp/ChangeLog.egcs
+++ b/gcc/cp/ChangeLog.egcs
@@ -1,3 +1,8 @@
+Wed Oct 22 18:56:31 1997 Jeffrey A Law (law@cygnus.com)
+
+ * lex.c (lang_init): Enable flag_exceptions by default if no
+ command line switch was specified.
+
Wed Sep 10 16:39:26 1997 Jim Wilson <wilson@cygnus.com>
* Make-lang.in (LN, LN_S): New macros, use where appropriate.
diff --git a/gcc/cp/lex.c b/gcc/cp/lex.c
index 863fe4c..3d17fa3 100644
--- a/gcc/cp/lex.c
+++ b/gcc/cp/lex.c
@@ -387,6 +387,10 @@ 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