]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
arm: testsuite: improve compatibility of gcc.target/arm/pr59575.c
authorRichard Earnshaw <rearnsha@arm.com>
Mon, 6 Nov 2023 17:04:03 +0000 (17:04 +0000)
committerRichard Earnshaw <rearnsha@arm.com>
Mon, 13 Nov 2023 14:15:57 +0000 (14:15 +0000)
Use dg-require-effective-target/dg-add-options to improve
compatibility of this test with various compiler configurations.

gcc/testsuite:

* gcc.target/arm/pr59575.c: Use dg-require-effective-target and
dg-add-options.

gcc/testsuite/gcc.target/arm/pr59575.c

index cc49be3d61f676be637678a453a5d08de3da7785..27d7d40526efc4dc7b517fc35a36a0237e52766f 100644 (file)
@@ -1,7 +1,9 @@
 /* PR target/59575 */
 /* { dg-do compile } */
+/* { dg-require-effective-target arm_arch_v7a_ok } */
 /* { dg-skip-if "-mpure-code supports M-profile only" { *-*-* } { "-mpure-code" } } */
-/* { dg-options "-Os -g -march=armv7-a" } */
+/* { dg-options "-Os -g" } */
+/* { dg-add-options arm_arch_v7a } */
 
 void foo (int *);
 int *bar (int, long long, int);