From c6eb958c63c8f92d793a1fcf17e6b74582afd04d Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Fri, 6 Jun 2008 15:24:45 +0200 Subject: [PATCH] re PR rtl-optimization/36419 (Wrong unwind info with -Os -fasynchronous-unwind-tables) PR rtl-optimization/36419 * except.c (expand_resx_expr): Call do_pending_stack_adjust () before the emitting jump insn. From-SVN: r136435 --- gcc/ChangeLog | 4 ++++ gcc/except.c | 1 + 2 files changed, 5 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c7da7ddecdd..7e37721160e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,9 @@ 2008-06-06 Jakub Jelinek + PR rtl-optimization/36419 + * except.c (expand_resx_expr): Call do_pending_stack_adjust () before + the emitting jump insn. + PR target/36362 * gimplify.c (gimplify_expr) : If *expr_p type is not bool, boolify the whole *expr_p and convert to the desired type. diff --git a/gcc/except.c b/gcc/except.c index f8bacd5902b..8ebfd7fa1db 100644 --- a/gcc/except.c +++ b/gcc/except.c @@ -540,6 +540,7 @@ expand_resx_expr (tree exp) cfun->eh->region_array, region_nr); gcc_assert (!reg->resume); + do_pending_stack_adjust (); reg->resume = emit_jump_insn (gen_rtx_RESX (VOIDmode, region_nr)); emit_barrier (); } -- 2.30.2