]> git.ipfire.org Git - thirdparty/gcc.git/commit
s390: Add -fno-stack-protector to 3 tests
authorJakub Jelinek <jakub@redhat.com>
Tue, 1 Jul 2025 15:33:32 +0000 (17:33 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 1 Jul 2025 15:33:32 +0000 (17:33 +0200)
commit01564529234461d84c7df1b0223fd908d8bcbfee
tree76780f81d8c802a11bfe5035a308e3a0ca99cad5
parent63f44b398f5938503cbd1e168bcc723697c9e9ad
s390: Add -fno-stack-protector to 3 tests

In Fedora/RHEL we usually test with
make check RUNTESTFLAGS="--target_board=unix/'{,-fstack-protector-strong}'"
because -fstack-protector-strong is used when building pretty much all the
packages.

In the past Marek Polacek has committed tweaks to various tests to make
them PASS in such testing, see e.g. r14-6276 or r14-2200.
These 3 tests FAIL with -fstack-protector-strong on s390x because they
use check-function-bodies and aren't prepared for the extra
-fstack-protector-{strong,all} extra code in the prologue/epilogue.

The following patch should fix that.

2025-07-01  Jakub Jelinek  <jakub@redhat.com>

* gcc.target/s390/vector/vec-abs-emu.c: Add -fno-stack-protector
to dg-options.
* gcc.target/s390/vector/vec-max-emu.c: Likewise.
* gcc.target/s390/vector/vec-min-emu.c: Likewise.
gcc/testsuite/gcc.target/s390/vector/vec-abs-emu.c
gcc/testsuite/gcc.target/s390/vector/vec-max-emu.c
gcc/testsuite/gcc.target/s390/vector/vec-min-emu.c