[Bug target/84128] i686: Stack spilling in -fstack-clash-protection prologue neglects %esp change
law at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Feb 1 16:23:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84128
--- Comment #3 from Jeffrey A. Law <law at gcc dot gnu.org> ---
Author: law
Date: Thu Feb 1 16:22:56 2018
New Revision: 257303
URL: https://gcc.gnu.org/viewcvs?rev=257303&root=gcc&view=rev
Log:
PR target/84128
* config/i386/i386.c (release_scratch_register_on_entry): Add new
OFFSET and RELEASE_VIA_POP arguments. Use SP+OFFSET to restore
the scratch if RELEASE_VIA_POP is false.
(ix86_adjust_stack_and_probe_stack_clash): Un-constify SIZE.
If we have to save a temporary register, decrement SIZE appropriately.
Pass new arguments to release_scratch_register_on_entry.
(ix86_adjust_stack_and_probe): Likewise.
(ix86_emit_probe_stack_range): Pass new arguments to
release_scratch_register_on_entry.
PR target/84128
* gcc.target/i386/pr84128.c: New test.
Added:
trunk/gcc/testsuite/gcc.target/i386/pr84128.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/i386/i386.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list