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/80968] stack frame reference allowed in delay slot of return instruction


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80968

--- Comment #5 from davem at gcc dot gnu.org ---
Author: davem
Date: Tue Jun  6 18:54:55 2017
New Revision: 248931

URL: https://gcc.gnu.org/viewcvs?rev=248931&root=gcc&view=rev
Log:
sparc: Fix stack references in return delay slot.

gcc/

        PR target/80968
        * config/sparc/sparc.c (sparc_expand_prologue): Emit frame
        blockage if function uses alloca.

gcc/testsuite/

        * gcc.target/sparc/sparc-ret-3.c: New test.


Added:
    branches/gcc-5-branch/gcc/testsuite/gcc.target/sparc/sparc-ret-3.c
Modified:
    branches/gcc-5-branch/gcc/ChangeLog
    branches/gcc-5-branch/gcc/config/sparc/sparc.c
    branches/gcc-5-branch/gcc/testsuite/ChangeLog

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