]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
aarch64: testsuite: disable stack protector for sve-pcs tests
authorXi Ruoyao <xry111@xry111.site>
Sat, 24 Sep 2022 06:20:12 +0000 (14:20 +0800)
committerXi Ruoyao <xry111@xry111.site>
Thu, 15 Jun 2023 10:19:55 +0000 (18:19 +0800)
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.

(cherry picked from commit edb336cc575a82cfc2a883e4c3453c36267482c1)

gcc/testsuite/gcc.target/aarch64/sve/pcs/aarch64-sve-pcs.exp

index 83786733f355a0c583422f94997e60d670951314..76f5fd4ffd84248e836213844d1f7c733e7d80bc 100644 (file)
@@ -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.