diff options
author | Jakub Jelinek <jakub@redhat.com> | 2023-12-11 23:52:46 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2023-12-11 23:52:46 +0100 |
commit | 639776f260144b874c29ede0d9a6613192667094 (patch) | |
tree | 395d25561c90b6bde5e86d3736961c12ddd3d425 /gcc | |
parent | 6cf9654c3b06c076502a39a3bf2222dd6e43b73b (diff) | |
download | gcc-639776f260144b874c29ede0d9a6613192667094.zip gcc-639776f260144b874c29ede0d9a6613192667094.tar.gz gcc-639776f260144b874c29ede0d9a6613192667094.tar.bz2 |
testsuite: Disable -fstack-protector* for some strub tests
In our distro builds, we test with
RUNTESTFLAGS='--target_board=unix\{,-fstack-protector-strong\}'
because SSP is something we use widely in the distribution.
4 new strub test FAIL with that option though, as can be
seen with a simple
make check-gcc check-g++ RUNTESTFLAGS='--target_board=unix\{,-fstack-protector-strong\} dg.exp=strub-O*'
- in particular, the expand dump
\[(\]call\[^\n\]*strub_leave.*\n\[(\]code_label
regexps see code_labels in there introduced for stack protector.
The following patch fixes it by using -fno-stack-protector for these
explicitly.
2023-12-11 Jakub Jelinek <jakub@redhat.com>
* c-c++-common/strub-O2fni.c: Add -fno-stack-protector to dg-options.
* c-c++-common/strub-O3fni.c: Likewise.
* c-c++-common/strub-Os.c: Likewise.
* c-c++-common/strub-Og.c: Likewise.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/c-c++-common/strub-O2fni.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/c-c++-common/strub-O3fni.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/c-c++-common/strub-Og.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/c-c++-common/strub-Os.c | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/gcc/testsuite/c-c++-common/strub-O2fni.c b/gcc/testsuite/c-c++-common/strub-O2fni.c index 905e2c6..acb8cee 100644 --- a/gcc/testsuite/c-c++-common/strub-O2fni.c +++ b/gcc/testsuite/c-c++-common/strub-O2fni.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -fstrub=strict -fdump-rtl-expand -fno-inline" } */ +/* { dg-options "-O2 -fstrub=strict -fdump-rtl-expand -fno-inline -fno-stack-protector" } */ /* { dg-require-effective-target strub } */ /* With -fno-inline, none of the strub builtins are inlined. */ diff --git a/gcc/testsuite/c-c++-common/strub-O3fni.c b/gcc/testsuite/c-c++-common/strub-O3fni.c index c46fce3..454c706 100644 --- a/gcc/testsuite/c-c++-common/strub-O3fni.c +++ b/gcc/testsuite/c-c++-common/strub-O3fni.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O3 -fstrub=strict -fdump-rtl-expand -fno-inline" } */ +/* { dg-options "-O3 -fstrub=strict -fdump-rtl-expand -fno-inline -fno-stack-protector" } */ /* { dg-require-effective-target strub } */ /* With -fno-inline, none of the strub builtins are inlined. */ diff --git a/gcc/testsuite/c-c++-common/strub-Og.c b/gcc/testsuite/c-c++-common/strub-Og.c index 3b8eb19..a81f220 100644 --- a/gcc/testsuite/c-c++-common/strub-Og.c +++ b/gcc/testsuite/c-c++-common/strub-Og.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-Og -fstrub=strict -fdump-rtl-expand" } */ +/* { dg-options "-Og -fstrub=strict -fdump-rtl-expand -fno-stack-protector" } */ /* { dg-require-effective-target strub } */ /* At -Og, without -fno-inline, we fully expand enter, but neither update nor diff --git a/gcc/testsuite/c-c++-common/strub-Os.c b/gcc/testsuite/c-c++-common/strub-Os.c index 8cfb253..5a146f0 100644 --- a/gcc/testsuite/c-c++-common/strub-Os.c +++ b/gcc/testsuite/c-c++-common/strub-Os.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-Os -fstrub=strict -fdump-rtl-expand" } */ +/* { dg-options "-Os -fstrub=strict -fdump-rtl-expand -fno-stack-protector" } */ /* { dg-require-effective-target strub } */ /* At -Os, without -fno-inline, we fully expand enter, and also update. The |