]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
arm: testsuite: Use test framework to set arch in stack-protector-7
authorChristopher Bazley <chris.bazley@arm.com>
Thu, 29 Jan 2026 15:55:15 +0000 (15:55 +0000)
committerRichard Earnshaw <rearnsha@arm.com>
Thu, 29 Jan 2026 16:45:30 +0000 (16:45 +0000)
This test was trying to set the architecture directly instead of
using the framework. The queried options were previously ignored.

gcc/testsuite/ChangeLog:
* gcc.target/arm/stack-protector-7.c: Fix dgdirectives.

gcc/testsuite/gcc.target/arm/stack-protector-7.c

index 23207fd98c84dc6b07beb2d9bf0d48b5b3b2392f..607e87d260a89e24fb2f61124acd982514062f2a 100644 (file)
@@ -1,7 +1,7 @@
 /* { dg-do compile } */
-/* { dg-require-effective-target arm_hard_vfp_ok }  */
-/* { dg-require-effective-target arm_arch_v7a_ok } */
-/* { dg-options "-march=armv7-a -mfpu=vfp -fstack-protector-all -Os -mstack-protector-guard=tls -mstack-protector-guard-offset=1296 -mtp=cp15" } */
+/* { dg-require-effective-target arm_arch_v7a_fp_hard_ok } */
+/* { dg-options "-fstack-protector-all -Os -mstack-protector-guard=tls -mstack-protector-guard-offset=1296 -mtp=cp15" } */
+/* { dg-add-options arm_arch_v7a_fp_hard } */
 
 #include "stack-protector-5.c"