Hi! 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. Ok for trunk/15.2? 2025-07-01 Jakub Jelinek <ja...@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.jj 2025-04-08 14:09:09.742024450 +0200 +++ gcc/testsuite/gcc.target/s390/vector/vec-abs-emu.c 2025-07-01 14:44:21.617970404 +0200 @@ -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} } } */ --- gcc/testsuite/gcc.target/s390/vector/vec-max-emu.c.jj 2025-04-08 14:09:09.742024450 +0200 +++ gcc/testsuite/gcc.target/s390/vector/vec-max-emu.c 2025-07-01 14:44:42.230706470 +0200 @@ -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} } } */ --- gcc/testsuite/gcc.target/s390/vector/vec-min-emu.c.jj 2025-04-08 14:09:09.742024450 +0200 +++ gcc/testsuite/gcc.target/s390/vector/vec-min-emu.c 2025-07-01 14:44:34.520805189 +0200 @@ -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} } } */ Jakub