aboutsummaryrefslogtreecommitdiff
path: root/gcc/except.c
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2001-06-08 16:19:45 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2001-06-08 16:19:45 +0000
commitb912bca0f08b27318ebcdcf2ce268e3dc464d110 (patch)
treeb078ead09ff55d50dc023f3cf7738bfa4886dad0 /gcc/except.c
parent4b454fccf5dce834e4d2d31fc1d0e0be99dee267 (diff)
downloadgcc-b912bca0f08b27318ebcdcf2ce268e3dc464d110.zip
gcc-b912bca0f08b27318ebcdcf2ce268e3dc464d110.tar.gz
gcc-b912bca0f08b27318ebcdcf2ce268e3dc464d110.tar.bz2
except.c (expand_eh_region_end_allowed): Call do_pending_stack_adjust as necessary.
* except.c (expand_eh_region_end_allowed): Call do_pending_stack_adjust as necessary. From-SVN: r43020
Diffstat (limited to 'gcc/except.c')
-rw-r--r--gcc/except.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/except.c b/gcc/except.c
index e59afc6..5ad9071 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);
}