]> git.ipfire.org Git - thirdparty/gcc.git/commit
IBM Z: Fix mode in probe_stack pattern
authorAndreas Krebbel <krebbel@linux.ibm.com>
Thu, 3 Dec 2020 16:04:11 +0000 (17:04 +0100)
committerAndreas Krebbel <krebbel@linux.ibm.com>
Thu, 3 Dec 2020 16:04:17 +0000 (17:04 +0100)
commit65af6bc9f87bc6b329fb7a16e3f736dd0a042bf5
treef40c2b131e94a2569c553d0c3f7745229d8d2a37
parent62fb1b9e0da44a15b0434def20724f989d61e27b
IBM Z: Fix mode in probe_stack pattern

The probe pattern uses Pmode but the middle-end wants to emit a
word_mode probe check.  This - as usual - breaks on Z with -m31
-mzarch were word_mode doesn't match Pmode.

gcc/ChangeLog:

* config/s390/s390.md ("@probe_stack2<mode>"): Change mode
iterator to W.

gcc/testsuite/ChangeLog:

* gcc.target/s390/stack-clash-4.c: New test.
gcc/config/s390/s390.md
gcc/testsuite/gcc.target/s390/stack-clash-4.c [new file with mode: 0644]