aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Earnshaw <rearnsha@arm.com>2023-11-03 15:30:29 +0000
committerRichard Earnshaw <rearnsha@arm.com>2023-11-13 14:15:55 +0000
commitf757ea72edc3d34410a9cb13a01c6b1aaed0e1bc (patch)
tree3540125ea29ab584e3ee9c9b5911a1e6ff2a5f1f
parent825652797cc476bf8253edf894d3926b51cf942e (diff)
downloadgcc-f757ea72edc3d34410a9cb13a01c6b1aaed0e1bc.zip
gcc-f757ea72edc3d34410a9cb13a01c6b1aaed0e1bc.tar.gz
gcc-f757ea72edc3d34410a9cb13a01c6b1aaed0e1bc.tar.bz2
arm: testsuite: avoid problems with -mfpu=auto in attr_thumb-static2.c
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.
-rw-r--r--gcc/testsuite/gcc.target/arm/attr_thumb-static2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/testsuite/gcc.target/arm/attr_thumb-static2.c b/gcc/testsuite/gcc.target/arm/attr_thumb-static2.c
index 7745434..a38f9a9 100644
--- a/gcc/testsuite/gcc.target/arm/attr_thumb-static2.c
+++ b/gcc/testsuite/gcc.target/arm/attr_thumb-static2.c
@@ -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
{