From: Per Bothner Date: Wed, 2 May 2001 02:04:27 +0000 (-0700) Subject: expr.c (expand_expr): When compiling LABELED_BLOCK_EXPR... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0a5fee3256ec62528a5aba473854929be72a4c3a;p=gcc.git expr.c (expand_expr): When compiling LABELED_BLOCK_EXPR... * expr.c (expand_expr): When compiling LABELED_BLOCK_EXPR, call do_pending_stack_adjust before emiting label. From-SVN: r41753 --- 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 + + * expr.c (expand_expr): When compiling LABELED_BLOCK_EXPR, + call do_pending_stack_adjust before emiting label. + 2001-05-01 Mark Mitchell * 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;