This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/80968] stack frame reference allowed in delay slot of return instruction
- From: "davem at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 06 Jun 2017 18:55:27 +0000
- Subject: [Bug target/80968] stack frame reference allowed in delay slot of return instruction
- Auto-submitted: auto-generated
- References: <bug-80968-4@http.gcc.gnu.org/bugzilla/>
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