This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/81803] [7/8 regression] miscompilation at -O1 on mips64el
- From: "jcowgill+gcc at jcowgill dot uk" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 29 Aug 2017 14:33:57 +0000
- Subject: [Bug target/81803] [7/8 regression] miscompilation at -O1 on mips64el
- Auto-submitted: auto-generated
- References: <bug-81803-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81803
--- Comment #8 from James Cowgill <jcowgill+gcc at jcowgill dot uk> ---
Created attachment 42072
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42072&action=edit
testcase-c
Here is another smaller testcase which was manually created. It works by using
asm to clobber all the registers and passing -ffixed for the saved registers to
force a stack spill and trigger the bug.
Compile with:
> gcc -S -O2 -fstack-protector-strong -ffixed-s0 -ffixed-s1 -ffixed-s2 -ffixed-s3 -ffixed-s4 -ffixed-s5 -ffixed-s6 -ffixed-s7 test.c