public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-6519] aarch64: testsuite: disable stack protector for sve-pcs tests
@ 2023-03-07 7:38 Xi Ruoyao
0 siblings, 0 replies; only message in thread
From: Xi Ruoyao @ 2023-03-07 7:38 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:edb336cc575a82cfc2a883e4c3453c36267482c1
commit r13-6519-gedb336cc575a82cfc2a883e4c3453c36267482c1
Author: Xi Ruoyao <xry111@xry111.site>
Date: Sat Sep 24 14:20:12 2022 +0800
aarch64: testsuite: disable stack protector for sve-pcs tests
If GCC is configured with --enable-default-ssp, the stack protector can
make many sve-pcs tests fail.
gcc/testsuite/ChangeLog:
* gcc.target/aarch64/sve/pcs/aarch64-sve-pcs.exp (sve_flags):
Add -fno-stack-protector.
Diff:
---
gcc/testsuite/gcc.target/aarch64/sve/pcs/aarch64-sve-pcs.exp | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pcs/aarch64-sve-pcs.exp b/gcc/testsuite/gcc.target/aarch64/sve/pcs/aarch64-sve-pcs.exp
index 5562502cc07..3dbf73f67c9 100644
--- a/gcc/testsuite/gcc.target/aarch64/sve/pcs/aarch64-sve-pcs.exp
+++ b/gcc/testsuite/gcc.target/aarch64/sve/pcs/aarch64-sve-pcs.exp
@@ -37,11 +37,12 @@ if ![info exists DEFAULT_CFLAGS] then {
# Initialize `dg'.
dg-init
-# Force SVE if we're not testing it already.
+# Force SVE if we're not testing it already. And, disable stack protector
+# to avoid test failures with --enable-default-ssp.
if { [check_effective_target_aarch64_sve] } {
- set sve_flags ""
+ set sve_flags "-fno-stack-protector"
} else {
- set sve_flags "-march=armv8.2-a+sve"
+ set sve_flags "-march=armv8.2-a+sve -fno-stack-protector"
}
# Main loop.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-03-07 7:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-07 7:38 [gcc r13-6519] aarch64: testsuite: disable stack protector for sve-pcs tests Xi Ruoyao
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).