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.
# 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.