]> gcc.gnu.org Git - gcc.git/commitdiff
arm: testsuite: avoid problems with -mfpu=auto in attr_thumb-static2.c
authorRichard Earnshaw <rearnsha@arm.com>
Fri, 3 Nov 2023 15:30:29 +0000 (15:30 +0000)
committerRichard Earnshaw <rearnsha@arm.com>
Mon, 13 Nov 2023 14:15:55 +0000 (14:15 +0000)
This test overrides the architecture, but fails to describe which
floating-point features are needed.  This causes problems if the ABI
requires FP for parameter passing and -mfpu=auto is selected, so ensure
that one is specified.

gcc/testsuite:

* gcc.target/arm/attr_thumb-static2.c: Add +fp to the -march
specification.

gcc/testsuite/gcc.target/arm/attr_thumb-static2.c

index 77454343b2306b86bfad06d78d76b94df31b1505..a38f9a95607d664552d3fa593bb902ad5b2d1e31 100644 (file)
@@ -2,7 +2,7 @@
 
 /* { dg-do compile } */
 /* { dg-require-effective-target arm_arch_v7a_ok } */
-/* { dg-options "-O0 -march=armv7-a" } */
+/* { dg-options "-O0 -march=armv7-a+fp" } */
 
 struct _NSPoint
 {
This page took 0.072581 seconds and 5 git commands to generate.