From cec614458728755003c2361e156e2e492edabb04 Mon Sep 17 00:00:00 2001 From: Richard Earnshaw <rearnsha@arm.com> Date: Fri, 3 Nov 2023 17:48:40 +0000 Subject: [PATCH] arm: testsuite: tidy up pr65647-2.c pre-checks. Another case where we can make better use of the infrastructure to improve the compatibility of this test. gcc/testsuite: * gcc.target/arm/pr65647-2.c: Use dg-add-options to manage target flags. --- gcc/testsuite/gcc.target/arm/pr65647-2.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/gcc.target/arm/pr65647-2.c b/gcc/testsuite/gcc.target/arm/pr65647-2.c index e3978e512eaa..79637bfd9d74 100644 --- a/gcc/testsuite/gcc.target/arm/pr65647-2.c +++ b/gcc/testsuite/gcc.target/arm/pr65647-2.c @@ -1,6 +1,7 @@ /* { dg-do compile } */ /* { dg-require-effective-target arm_arch_v6_arm_ok } */ -/* { dg-options "-O3 -marm -march=armv6 -std=c99" } */ +/* { dg-options "-O3 -std=c99" } */ +/* { dg-add-options arm_arch_v6_arm } */ typedef struct { int i; -- GitLab