]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: Add a couple of fstack_protector guards
authorRichard Sandiford <richard.sandiford@arm.com>
Wed, 9 Jul 2025 14:01:17 +0000 (15:01 +0100)
committerRichard Sandiford <richard.sandiford@arm.com>
Wed, 9 Jul 2025 14:01:17 +0000 (15:01 +0100)
These tests required runtime support for -fstack-protector,
but didn't test for it.

gcc/testsuite/
* gcc.target/aarch64/pr118348_1.c: Require fstack_protector.
* gcc.target/aarch64/pr118348_2.c: Likewise.

gcc/testsuite/gcc.target/aarch64/pr118348_1.c
gcc/testsuite/gcc.target/aarch64/pr118348_2.c

index 75f6dada63a359a5c53537aa273f8e423d5683c8..2715dcb8b12f6d5f51e62cf7a569ba7dad98526a 100644 (file)
@@ -1,4 +1,4 @@
-/* { dg-do run { target aarch64_sve128_hw } } */
+/* { dg-do run { target { aarch64_sve128_hw && fstack_protector } } } */
 /* { dg-options "-O2 -fopenmp-simd -fno-trapping-math -msve-vector-bits=128 --param aarch64-autovec-preference=sve-only -fstack-protector-strong" } */
 
 #pragma GCC target "+sve"
index 2e200044637afa07148dcc96584f4c0ac6e10393..4ce8d20236ccb34d3c9efd01c67a021fc5665830 100644 (file)
@@ -1,4 +1,4 @@
-/* { dg-do run { target aarch64_sve256_hw } } */
+/* { dg-do run { target { aarch64_sve256_hw && fstack_protector } } } */
 /* { dg-options "-O2 -fopenmp-simd -fno-trapping-math -msve-vector-bits=256 --param aarch64-autovec-preference=sve-only -fstack-protector-strong" } */
 
 #include "pr118348_1.c"