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

Reply via email to