re PR target/83994 (%ebx is clobbered by stack-clash probing for regparm-3 function...
authorJeff Law <law@redhat.com>
Wed, 24 Jan 2018 21:57:16 +0000 (14:57 -0700)
committerJeff Law <law@gcc.gnu.org>
Wed, 24 Jan 2018 21:57:16 +0000 (14:57 -0700)
commit5e77d9b130abdd5878557d34839e1b159a7f68ef
tree380dc091644ccc25405ff6216ba410ee0ebf7620
parentffd464df03c608e008caeba1cab1c9eb276fd41e
re PR target/83994 (%ebx is clobbered by stack-clash probing for regparm-3 function in PIC mode)

PR target/83994
* i386.c (get_probe_interval): Move to earlier point.
(ix86_compute_frame_layout): If -fstack-clash-protection and
the frame is larger than the probe interval, then use pushes
to save registers rather than reg->mem moves.
(ix86_expand_prologue): Remove conditional for int_registers_saved
assertion.

PR target/83994
* gcc.target/i386/pr83994.c: New test.

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