re PR rtl-optimization/36419 (Wrong unwind info with -Os -fasynchronous-unwind-tables)
authorJakub Jelinek <jakub@redhat.com>
Fri, 6 Jun 2008 13:24:45 +0000 (15:24 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 6 Jun 2008 13:24:45 +0000 (15:24 +0200)
PR rtl-optimization/36419
* except.c (expand_resx_expr): Call do_pending_stack_adjust () before
the emitting jump insn.

From-SVN: r136435

gcc/ChangeLog
gcc/except.c

index c7da7dd..7e37721 100644 (file)
@@ -1,5 +1,9 @@
 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
 
+       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) <case TRUTH_NOT_EXPR>: If *expr_p type
        is not bool, boolify the whole *expr_p and convert to the desired type.
index f8bacd5..8ebfd7f 100644 (file)
@@ -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 ();
 }