aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/parse.y
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2001-03-28 00:38:22 -0800
committerRichard Henderson <rth@gcc.gnu.org>2001-03-28 00:38:22 -0800
commitda7da8f9773d5e6b2edde3d332df6f2f85ed3c51 (patch)
tree961a35efbd1e3fc52963c3b678c4aa54dd5c7cfe /gcc/java/parse.y
parent826840d96aa1722381e57d96df700528c4581c33 (diff)
downloadgcc-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/parse.y')
-rw-r--r--gcc/java/parse.y9
1 files changed, 0 insertions, 9 deletions
diff --git a/gcc/java/parse.y b/gcc/java/parse.y
index 4e688bb..e09af7a 100644
--- a/gcc/java/parse.y
+++ b/gcc/java/parse.y
@@ -7117,7 +7117,6 @@ static void
source_end_java_method ()
{
tree fndecl = current_function_decl;
- int flag_flag_non_call_exceptions = flag_non_call_exceptions;
if (!fndecl)
return;
@@ -7153,20 +7152,12 @@ source_end_java_method ()
emit_handlers ();
expand_function_end (input_filename, lineno, 0);
- /* FIXME: If the current method contains any exception handlers,
- force flag_non_call_exceptions: this is necessary because signal
- handlers in libjava may throw exceptions. This is far from being
- a perfect solution, but it's better than doing nothing at all.*/
- if (catch_clauses)
- flag_non_call_exceptions = 1;
-
/* Run the optimizers and output assembler code for this function. */
rest_of_compilation (fndecl);
}
current_function_decl = NULL_TREE;
java_parser_context_restore_global ();
- flag_non_call_exceptions = flag_flag_non_call_exceptions;
}
/* Record EXPR in the current function block. Complements compound