]> gcc.gnu.org Git - gcc.git/commit
IBM Z: Change Pmode to word_mode for stack probes
authorAndreas Krebbel <krebbel@linux.ibm.com>
Mon, 7 Dec 2020 08:42:39 +0000 (09:42 +0100)
committerAndreas Krebbel <krebbel@linux.ibm.com>
Mon, 7 Dec 2020 08:48:30 +0000 (09:48 +0100)
commitbf615bf65a0035cac3d4ac229e6413aad3b1d44a
tree254a30305afa6e0dc2396c6a5b5f2fea8fc7ad2d
parentad9c120a019ba4222bb062017da2db9711652dc3
IBM Z: Change Pmode to word_mode for stack probes

In s390.c we are still using Pmode for the stack probes. This breaks
with -m31 -mzarch where Pmode != word_mode.

The patch also adds a new target check to s390.exp which allows us to
implement zarch specific checks in the testcases.

gcc/ChangeLog:

* config/s390/s390.c (s390_emit_stack_probe): Change Pmode to
word_mode.

gcc/testsuite/ChangeLog:

* gcc.target/s390/s390.exp: New target check s390_zarch.
* gcc.target/s390/stack-clash-1.c: Use s390_zarch instead of lp64.
* gcc.target/s390/stack-clash-2.c: Likewise.
* gcc.target/s390/stack-clash-3.c: Likewise.
* gcc.target/s390/stack-clash-5.c: New test.
gcc/config/s390/s390.c
gcc/testsuite/gcc.target/s390/s390.exp
gcc/testsuite/gcc.target/s390/stack-clash-1.c
gcc/testsuite/gcc.target/s390/stack-clash-2.c
gcc/testsuite/gcc.target/s390/stack-clash-3.c
gcc/testsuite/gcc.target/s390/stack-clash-5.c [new file with mode: 0644]
This page took 0.05806 seconds and 5 git commands to generate.