diff options
author | Richard Henderson <rth@redhat.com> | 2001-03-28 08:38:22 +0000 |
---|---|---|
committer | Richard Henderson <rth@redhat.com> | 2001-03-28 08:38:22 +0000 |
commit | 1c7647e43c4dd9cf042a6027462bc9f757deacfc (patch) | |
tree | 961a35efbd1e3fc52963c3b678c4aa54dd5c7cfe /gcc/java/decl.c | |
parent | 462db236e13db5ed90ba8b3a27bd16600fb8489f (diff) |
* 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.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@40921 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/java/decl.c')
-rw-r--r-- | gcc/java/decl.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/gcc/java/decl.c b/gcc/java/decl.c index a5b423bfa05..c81c3421104 100644 --- a/gcc/java/decl.c +++ b/gcc/java/decl.c @@ -1827,7 +1827,6 @@ void end_java_method () { tree fndecl = current_function_decl; - int flag_flag_non_call_exceptions = flag_non_call_exceptions; expand_end_bindings (getdecls (), 1, 0); /* pop out of function */ @@ -1843,18 +1842,10 @@ end_java_method () /* Generate rtl for function exit. */ 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; - flag_non_call_exceptions = flag_flag_non_call_exceptions; } /* Mark language-specific parts of T for garbage-collection. */ |