re PR target/84064 (ICE in ix86_expand_prologue related to -fstack-clash-protection...
authorJeff Law <law@redhat.com>
Wed, 31 Jan 2018 05:02:30 +0000 (22:02 -0700)
committerJeff Law <law@gcc.gnu.org>
Wed, 31 Jan 2018 05:02:30 +0000 (22:02 -0700)
commit5837571173e41e9c30eccb92f75b17e52bed2116
treefd770f27e33c3026b19133dbaf888d40763d84a0
parent61ddc5ea25a0e5dc691c0c5d4357a47fbdc3ded0
re PR target/84064 (ICE in ix86_expand_prologue related to -fstack-clash-protection and memcpy on i686)

PR target/84064
* i386.c (ix86_adjust_stack_and_probe_stack_clash): New argument
INT_REGISTERS_SAVED.  Check it prior to calling
get_scratch_register_on_entry.
(ix86_adjust_stack_and_probe): Similarly.
(ix86_emit_probe_stack_range): Similarly.
(ix86_expand_prologue): Corresponding changes.

PR target/84064
* gcc.target/i386/pr84064: New test.

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