From: Jakub Jelinek Date: Tue, 1 Jul 2025 15:33:32 +0000 (+0200) Subject: s390: Add -fno-stack-protector to 3 tests X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=01564529234461d84c7df1b0223fd908d8bcbfee;p=thirdparty%2Fgcc.git 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 * 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. --- diff --git a/gcc/testsuite/gcc.target/s390/vector/vec-abs-emu.c b/gcc/testsuite/gcc.target/s390/vector/vec-abs-emu.c index e0dd222e62c..2fcaa959828 100644 --- a/gcc/testsuite/gcc.target/s390/vector/vec-abs-emu.c +++ b/gcc/testsuite/gcc.target/s390/vector/vec-abs-emu.c @@ -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} } } */ diff --git a/gcc/testsuite/gcc.target/s390/vector/vec-max-emu.c b/gcc/testsuite/gcc.target/s390/vector/vec-max-emu.c index 12c7e76edc1..16afd1d72d3 100644 --- a/gcc/testsuite/gcc.target/s390/vector/vec-max-emu.c +++ b/gcc/testsuite/gcc.target/s390/vector/vec-max-emu.c @@ -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} } } */ diff --git a/gcc/testsuite/gcc.target/s390/vector/vec-min-emu.c b/gcc/testsuite/gcc.target/s390/vector/vec-min-emu.c index a9bcba39e22..0eb09169cc8 100644 --- a/gcc/testsuite/gcc.target/s390/vector/vec-min-emu.c +++ b/gcc/testsuite/gcc.target/s390/vector/vec-min-emu.c @@ -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} } } */