diff options
author | Richard Henderson <rth@cygnus.com> | 1998-06-07 07:07:25 -0700 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 1998-06-07 07:07:25 -0700 |
commit | 9116eca2f8e83aa79bd9adeedd898e86875a8414 (patch) | |
tree | 57cab155d4bb3786cd3b524d4c7cf9f76174b14f /gcc | |
parent | b53beeb2916a20b2e96f71510dc1232592a4271f (diff) | |
download | gcc-9116eca2f8e83aa79bd9adeedd898e86875a8414.zip gcc-9116eca2f8e83aa79bd9adeedd898e86875a8414.tar.gz gcc-9116eca2f8e83aa79bd9adeedd898e86875a8414.tar.bz2 |
lex.c (lang_init_options): New function.
* lex.c (lang_init_options): New function.
(lang_init): Remove flag_exceptions == 2 hack.
From-SVN: r20275
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/cp/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/cp/lex.c | 11 |
2 files changed, 12 insertions, 4 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index cec9536..8d9031a 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -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. diff --git a/gcc/cp/lex.c b/gcc/cp/lex.c index 7f5693b..5211559 100644 --- a/gcc/cp/lex.c +++ b/gcc/cp/lex.c @@ -396,6 +396,13 @@ char *cplus_tree_code_name[] = { /* toplev.c needs to call these. */ void +lang_init_options () +{ + /* Default exceptions on. */ + flag_exceptions = 1; +} + +void lang_init () { /* the beginning of the file is a new line; check for # */ @@ -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 |