-
- Downloads
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.
Showing
- gcc/testsuite/c-c++-common/strub-O2fni.c 1 addition, 1 deletiongcc/testsuite/c-c++-common/strub-O2fni.c
- gcc/testsuite/c-c++-common/strub-O3fni.c 1 addition, 1 deletiongcc/testsuite/c-c++-common/strub-O3fni.c
- gcc/testsuite/c-c++-common/strub-Og.c 1 addition, 1 deletiongcc/testsuite/c-c++-common/strub-Og.c
- gcc/testsuite/c-c++-common/strub-Os.c 1 addition, 1 deletiongcc/testsuite/c-c++-common/strub-Os.c
Please register or sign in to comment