From 56bf1fd97aba55f54aa2ccc73768fc6160210d6e Mon Sep 17 00:00:00 2001 From: Jeffrey A Law Date: Thu, 23 Oct 1997 01:29:14 +0000 Subject: 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 --- gcc/cp/ChangeLog.egcs | 5 +++++ gcc/cp/lex.c | 4 ++++ 2 files changed, 9 insertions(+) (limited to 'gcc/cp') 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 * 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 -- cgit v1.1