summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/expr.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 95cb78c0be2..dcb64e537b4 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2001-05-01 Per Bothner <per@bothner.com>
+
+ * expr.c (expand_expr): When compiling LABELED_BLOCK_EXPR,
+ call do_pending_stack_adjust before emiting label.
+
2001-05-01 Mark Mitchell <mark@codesourcery.com>
* extend.texi: Fix typo.
diff --git a/gcc/expr.c b/gcc/expr.c
index 2ad473c3abd..0ef52f5d9ce 100644
--- a/gcc/expr.c
+++ b/gcc/expr.c
@@ -6603,6 +6603,8 @@ expand_expr (exp, target, tmode, modifier)
case LABELED_BLOCK_EXPR:
if (LABELED_BLOCK_BODY (exp))
expand_expr_stmt (LABELED_BLOCK_BODY (exp));
+ /* Should perhaps use expand_label, but this is simpler and safer. */
+ do_pending_stack_adjust ();
emit_label (label_rtx (LABELED_BLOCK_LABEL (exp)));
return const0_rtx;
OpenPOWER on IntegriCloud