diff options
author | Richard Henderson <rth@redhat.com> | 2001-03-28 00:38:22 -0800 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2001-03-28 00:38:22 -0800 |
commit | da7da8f9773d5e6b2edde3d332df6f2f85ed3c51 (patch) | |
tree | 961a35efbd1e3fc52963c3b678c4aa54dd5c7cfe /gcc/java/lang.c | |
parent | 826840d96aa1722381e57d96df700528c4581c33 (diff) | |
download | gcc-da7da8f9773d5e6b2edde3d332df6f2f85ed3c51.zip gcc-da7da8f9773d5e6b2edde3d332df6f2f85ed3c51.tar.gz gcc-da7da8f9773d5e6b2edde3d332df6f2f85ed3c51.tar.bz2 |
decl.c (end_java_method): Do not save and restore flag_non_call_exceptions.
* decl.c (end_java_method): Do not save and restore
flag_non_call_exceptions.
* parse.y (source_end_java_method): Likewise.
* lang.c (flag_exceptions): Don't declare.
(java_init_options): Set flag_non_call_exceptions. Set
flag_exceptions here ...
(java_init): ... not here.
From-SVN: r40921
Diffstat (limited to 'gcc/java/lang.c')
-rw-r--r-- | gcc/java/lang.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/gcc/java/lang.c b/gcc/java/lang.c index 982f451..2a3d586 100644 --- a/gcc/java/lang.c +++ b/gcc/java/lang.c @@ -150,10 +150,6 @@ int flag_extraneous_semicolon; /* When non zero, always check for a non gcj generated classes archive. */ int flag_force_classes_archive_check; -/* From gcc/flags.h, and indicates if exceptions are turned on or not. */ - -extern int flag_exceptions; - /* Table of language-dependent -f options. STRING is the option name. VARIABLE is the address of the variable. ON_VALUE is the value to store in VARIABLE @@ -655,8 +651,6 @@ java_init () print_error_function = lang_print_error; lang_expand_expr = java_lang_expand_expr; - flag_exceptions = 1; - /* Append to Gcc tree node definition arrays */ memcpy (tree_code_type + (int) LAST_AND_UNUSED_TREE_CODE, @@ -704,6 +698,8 @@ static void java_init_options () { flag_bounds_check = 1; + flag_exceptions = 1; + flag_non_call_exceptions = 1; } const char * |