From: Richard Earnshaw Date: Fri, 3 Nov 2023 17:48:40 +0000 (+0000) Subject: arm: testsuite: tidy up pr65647-2.c pre-checks. X-Git-Tag: basepoints/gcc-15~4737 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cec614458728755003c2361e156e2e492edabb04;p=thirdparty%2Fgcc.git 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. --- 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;