diff options
| author | aph <aph@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-01-25 10:32:18 +0000 |
|---|---|---|
| committer | aph <aph@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-01-25 10:32:18 +0000 |
| commit | 729912eee26a08542a230f0a266ceb975794e042 (patch) | |
| tree | 530b8265baf728fa4cde7e5d8aee4f0e9aa3a0d6 /gcc/java/expr.c | |
| parent | 72800af877e4e1d5033cf4882c7707d482826021 (diff) | |
| download | ppe42-gcc-729912eee26a08542a230f0a266ceb975794e042.tar.gz ppe42-gcc-729912eee26a08542a230f0a266ceb975794e042.zip | |
Mon Jan 25 17:39:19 1999 Andrew Haley <aph@cygnus.com>
* except.c, java-except.h (expand_resume_after_catch): new
function.
* expr.c (java_lang_expand_expr): call expand_resume_after_catch
to branch back to main flow of control after a catch block.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@24857 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/java/expr.c')
| -rw-r--r-- | gcc/java/expr.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/gcc/java/expr.c b/gcc/java/expr.c index 77cd45e8088..55e6ef63d2c 100644 --- a/gcc/java/expr.c +++ b/gcc/java/expr.c @@ -1896,16 +1896,7 @@ java_lang_expand_expr (exp, target, tmode, modifier) start_catch_handler (prepare_eh_table_type (type)); expand_expr_stmt (TREE_OPERAND (current, 0)); - /* Need to expand a goto to the end of the function here, - but not for the catch everything handler. */ - if (type) - { - if (return_label) - emit_jump (return_label); - else - fatal ("No return_label for this function - " - "java_lang_expand_expr"); - } + expand_resume_after_catch (); end_catch_handler (); } |

