]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
arm: testsuite: avoid dg-options in primary LTO file
authorRichard Earnshaw <rearnsha@arm.com>
Tue, 25 Mar 2025 13:48:06 +0000 (13:48 +0000)
committerRichard Earnshaw <rearnsha@arm.com>
Tue, 25 Mar 2025 13:48:06 +0000 (13:48 +0000)
As the primary LTO file in this test, it cannot use dg-options.  Move
the flags from there to dg-lto-options.

gcc/testsuite/ChangeLog:

* gcc.target/arm/lto/pr96939_0.c (dg-options):  Delete.  Move the
options from here ...
(dg-lto-options): ... to here.

gcc/testsuite/gcc.target/arm/lto/pr96939_0.c

index 21d2c1d70a40e530216e56d42651148dad083123..8dfbc061009035f1a73f8299c4a906a3bcfcb4dd 100644 (file)
@@ -1,8 +1,7 @@
 /* PR target/96939 */
 /* { dg-lto-do link } */
 /* { dg-require-effective-target arm_arch_v8a_link } */
-/* { dg-options "-mcpu=unset -march=armv8-a+simd -mfpu=auto" } */
-/* { dg-lto-options { { -flto -O2 } } } */
+/* { dg-lto-options { { -flto -O2 -mcpu=unset -march=armv8-a+simd -mfpu=auto} } } */
 
 extern unsigned crc (unsigned, const void *);
 typedef unsigned (*fnptr) (unsigned, const void *);