re PR middle-end/83654 (-fstack-clash-protection probes below the stack pointer for...
authorJeff Law <law@redhat.com>
Wed, 3 Jan 2018 18:22:28 +0000 (11:22 -0700)
committerJeff Law <law@gcc.gnu.org>
Wed, 3 Jan 2018 18:22:28 +0000 (11:22 -0700)
commit86aa0691c599e86e966bd1e81e95858a83d5e671
treed956d13e907210786986b283e145f3e97ada7538
parente95e79b628438a978b14c9a0740e0bb8072477e0
re PR middle-end/83654 (-fstack-clash-protection probes below the stack pointer for VLA with constant size)

PR middle-end/83654
* explow.c (anti_adjust_stack_and_probe_stack_clash): Test a
non-constant residual for zero at runtime and avoid probing in
that case.  Reorganize code for trailing problem to mirror handling
of the residual.

PR middle-end/83654
* gcc.target/i386/stack-check-18.c: New test.
* gcc.target/i386/stack-check-19.c: New test.

From-SVN: r256182
gcc/ChangeLog
gcc/explow.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/stack-check-18.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/stack-check-19.c [new file with mode: 0644]