diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6c28aeb3be21..ef129f57ad88 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2009-05-31 Jakub Jelinek + + PR middle-end/40304 + * config/i386/i386.c (pro_epilogue_adjust_stack): Mark insns + frame related even if !set_cfa && style < 0. + 2009-05-30 Kai Tietz * config/i386/mingw-tls.c: New file. diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index bf7fa0ce3bab..c6b388f78b21 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -8026,6 +8026,8 @@ pro_epilogue_adjust_stack (rtx dest, rtx src, rtx offset, gcc_assert (style); r11 = gen_rtx_REG (DImode, R11_REG); insn = emit_insn (gen_rtx_SET (DImode, r11, offset)); + if (style < 0) + RTX_FRAME_RELATED_P (insn) = 1; insn = emit_insn (gen_pro_epilogue_adjust_stack_rex64_2 (dest, src, r11, offset)); } @@ -8043,6 +8045,8 @@ pro_epilogue_adjust_stack (rtx dest, rtx src, rtx offset, add_reg_note (insn, REG_CFA_ADJUST_CFA, r); RTX_FRAME_RELATED_P (insn) = 1; } + else if (style < 0) + RTX_FRAME_RELATED_P (insn) = 1; } /* Find an available register to be used as dynamic realign argument