* config/s390/s390.c (MIN_UNROLL_PROBES): Define.
commit82e9b0b42fda5eae2b92f703f5ff71e03d2cf4c6
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 21 Sep 2017 04:30:16 +0000 (21 04:30 +0000)
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 21 Sep 2017 04:30:16 +0000 (21 04:30 +0000)
treea79b3cf39f96e4094384599615d4ad35580b356f
parent0ea6df154d112acb494c66d2f98cfda2fed5f44d
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@253049 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/config/s390/s390.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/stack-check-5.c
gcc/testsuite/lib/target-supports.exp