This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/58854] [4.8 regression] "sub sp, fp, #40" hoisted above frame accesses
- From: "minktee at hotmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 01 Jan 2014 03:59:50 +0000
- Subject: [Bug target/58854] [4.8 regression] "sub sp, fp, #40" hoisted above frame accesses
- Auto-submitted: auto-generated
- References: <bug-58854-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58854
--- Comment #12 from minktee <minktee at hotmail dot com> ---
Comment on attachment 31105
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31105
lightly tested patch.
>diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c
>index 212a4bc..23dfc0e 100644
>--- a/gcc/config/arm/arm.c
>+++ b/gcc/config/arm/arm.c
>@@ -26547,6 +26547,7 @@ arm_expand_epilogue_apcs_frame (bool really_return)
> num_regs = bit_count (saved_regs_mask);
> if ((offsets->outgoing_args != (1 + num_regs)) || cfun->calls_alloca)
> {
>+1 emit_insn (gen_blockage ());
> /* Unwind the stack to just below the saved registers. */
> emit_insn (gen_addsi3 (stack_pointer_rtx,
> hard_frame_pointer_rtx,