This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/58854] [4.8 regression] "sub sp, fp, #40" hoisted above frame accesses


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,


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]