s390.c (MIN_UNROLL_PROBES): Define.
authorAndreas Krebbel <krebbel@linux.vnet.ibm.com>
Thu, 21 Sep 2017 04:30:16 +0000 (04:30 +0000)
committerJeff Law <law@gcc.gnu.org>
Thu, 21 Sep 2017 04:30:16 +0000 (22:30 -0600)
commitd3347cd287bf89aca78ec030763792d86bb47fbc
treea79b3cf39f96e4094384599615d4ad35580b356f
parent12f713131ef7ffc26cbff4c380e43109fe7afcef
s390.c (MIN_UNROLL_PROBES): Define.

* config/s390/s390.c (MIN_UNROLL_PROBES): Define.
(allocate_stack_space): New function, partially extracted from
s390_emit_prologue.
(s390_emit_prologue): Track offset to most recent stack probe.
Code to allocate space moved into allocate_stack_space.
Dump actions when no stack is allocated.
(s390_prologue_plus_offset): New function.
(s390_emit_stack_probe): Likewise.

* gcc.dg/stack-check-5.c:  Add argument for s390.
* lib/target-supports.exp:
(check_effective_target_supports_stack_clash_protection): Enable for
s390/s390x targets.

Co-Authored-By: Jeff Law <law@redhat.com>
From-SVN: r253049
gcc/ChangeLog
gcc/config/s390/s390.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/stack-check-5.c
gcc/testsuite/lib/target-supports.exp