]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
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)
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

index e0dd222e62c7f7e34ed24329eeb32f92f673d5a9..2fcaa959828c96a8c88cb8e5262a701f88be9c06 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do run } */
-/* { dg-options "-O3 -mzarch -march=z13 -save-temps" } */
+/* { dg-options "-O3 -mzarch -march=z13 -save-temps -fno-stack-protector" } */
 /* { dg-require-effective-target int128 } */
 /* { dg-final { check-function-bodies "**" "" "" } } */
 /* { dg-final { scan-assembler-not {\tvlpq\t} } } */
index 12c7e76edc19536e640c90537c3dbf0ba20279c1..16afd1d72d3159d9118e96b897d144c7550d5619 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do run } */
-/* { dg-options "-O3 -mzarch -march=z13 -save-temps" } */
+/* { dg-options "-O3 -mzarch -march=z13 -save-temps -fno-stack-protector" } */
 /* { dg-require-effective-target int128 } */
 /* { dg-final { check-function-bodies "**" "" "" } } */
 /* { dg-final { scan-assembler-not {\tvmxq\t} } } */
index a9bcba39e224caca9d464df334897edce9ef60c3..0eb09169cc848f5b92e24f8b6b9501a7e8883275 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do run } */
-/* { dg-options "-O3 -mzarch -march=z13 -save-temps" } */
+/* { dg-options "-O3 -mzarch -march=z13 -save-temps -fno-stack-protector" } */
 /* { dg-require-effective-target int128 } */
 /* { dg-final { check-function-bodies "**" "" "" } } */
 /* { dg-final { scan-assembler-not {\tvmnq\t} } } */