From 64ef38d52b1d57759552bdfb366a5b479af50cfe Mon Sep 17 00:00:00 2001 From: mmitchel Date: Fri, 8 Jun 2001 16:06:43 +0000 Subject: [PATCH] * except.c (expand_eh_region_end_allowed): Call do_pending_stack_adjust as necessary. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-3_0-branch@43019 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 5 +++++ gcc/except.c | 8 ++++++++ 2 files changed, 13 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3207f66ce7d..aec99cc62a5 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2001-06-08 Mark Mitchell + + * except.c (expand_eh_region_end_allowed): Call + do_pending_stack_adjust as necessary. + 2001-06-08 Gerald Pfeifer * doc/install.texi2html (MAKEINFO): Keep value if set already. diff --git a/gcc/except.c b/gcc/except.c index c7493e7d930..a585920d6bd 100644 --- a/gcc/except.c +++ b/gcc/except.c @@ -857,11 +857,19 @@ expand_eh_region_end_allowed (allowed, failure) throws a different exception, that it will be processed by the correct region. */ + /* If there are any pending stack adjustments, we must emit them + before we branch -- otherwise, we won't know how much adjustment + is required later. */ + do_pending_stack_adjust (); around_label = gen_label_rtx (); emit_jump (around_label); emit_label (region->label); expand_expr (failure, const0_rtx, VOIDmode, EXPAND_NORMAL); + /* We must adjust the stack before we reach the AROUND_LABEL because + the call to FAILURE does not occur on all paths to the + AROUND_LABEL. */ + do_pending_stack_adjust (); emit_label (around_label); } -- 2.11.4.GIT