re PR target/84128 (i686: Stack spilling in -fstack-clash-protection prologue neglect...
authorJeff Law <law@gcc.gnu.org>
Thu, 1 Feb 2018 16:22:56 +0000 (09:22 -0700)
committerJeff Law <law@gcc.gnu.org>
Thu, 1 Feb 2018 16:22:56 +0000 (09:22 -0700)
commit89e06365dbba5b64cd7c761b5c15876499a1069f
treeb2ff6a1b62a89a366d263cb5db9007c76bd02373
parentff814010dd090ceb7dded8eae598f0532e59513b
re PR target/84128 (i686: Stack spilling in -fstack-clash-protection prologue neglects %esp change)

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.

From-SVN: r257303
gcc/ChangeLog
gcc/config/i386/i386.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/pr84128.c [new file with mode: 0644]