From: Richard Earnshaw Date: Fri, 3 Nov 2023 15:30:29 +0000 (+0000) Subject: arm: testsuite: avoid problems with -mfpu=auto in attr_thumb-static2.c X-Git-Tag: basepoints/gcc-15~4740 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f757ea72edc3d34410a9cb13a01c6b1aaed0e1bc;p=thirdparty%2Fgcc.git 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. --- diff --git a/gcc/testsuite/gcc.target/arm/attr_thumb-static2.c b/gcc/testsuite/gcc.target/arm/attr_thumb-static2.c index 77454343b230..a38f9a95607d 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 {