re PR target/82788 (wrong code with -fstack-clash-protection --param=stack-clash...
authorJeff Law <law@redhat.com>
Mon, 6 Nov 2017 15:51:16 +0000 (08:51 -0700)
committerJeff Law <law@gcc.gnu.org>
Mon, 6 Nov 2017 15:51:16 +0000 (08:51 -0700)
commit7a1bdd662bc670ee14646b371699c724df3ba643
treee620c8eedd9a17b561fd485087c4b5f6491ea767
parent5422b1f0bd98e715f9f01ce3db2af5450a071568
re PR target/82788 (wrong code with -fstack-clash-protection --param=stack-clash-protection-probe-interval=10 on simple code)

PR target/82788
* config/i386/i386.c (PROBE_INTERVAL): Remove.
(get_probe_interval): New functions.
(ix86_adjust_stack_and_probe_stack_clash): Use get_probe_interval.
(ix86_adjust_stack_and_probe): Likewise.
(output_adjust_stack_and_probe): Likewise.
(ix86_emit_probe_stack_range): Likewise.
(ix86_expand_prologue): Likewise.

PR target/82788
* gcc.dg/pr82788.c: New test.

From-SVN: r254456
gcc/ChangeLog
gcc/config/i386/i386.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr82788.c [new file with mode: 0644]