aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Earnshaw <rearnsha@arm.com>2023-11-03 15:16:43 +0000
committerRichard Earnshaw <rearnsha@arm.com>2023-11-13 14:15:55 +0000
commit380f419773077442750ba65568d25bc0627490fe (patch)
tree9af05671e2c2eba020d1932a941aff73c4058679 /gcc
parented52bc2e30cb7992e8a88113481bde0cb1ec4963 (diff)
downloadgcc-380f419773077442750ba65568d25bc0627490fe.zip
gcc-380f419773077442750ba65568d25bc0627490fe.tar.gz
gcc-380f419773077442750ba65568d25bc0627490fe.tar.bz2
arm: testsuite: avoid problems with -mfpu=auto in pacbti-m-predef-11.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/acle/pacbti-m-predef-11.c: Add +fp to the -march specification.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/gcc.target/arm/acle/pacbti-m-predef-11.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/testsuite/gcc.target/arm/acle/pacbti-m-predef-11.c b/gcc/testsuite/gcc.target/arm/acle/pacbti-m-predef-11.c
index 9f27110..6a5ae92 100644
--- a/gcc/testsuite/gcc.target/arm/acle/pacbti-m-predef-11.c
+++ b/gcc/testsuite/gcc.target/arm/acle/pacbti-m-predef-11.c
@@ -1,6 +1,6 @@
/* { dg-do compile } */
/* { dg-skip-if "avoid conflicting multilib options" { *-*-* } { "-marm" "-mcpu=*" "-mfloat-abi=*" } } */
-/* { dg-options "-march=armv8.1-m.main+pacbti" } */
+/* { dg-options "-march=armv8.1-m.main+fp+pacbti" } */
#if (__ARM_FEATURE_BTI != 1)
#error "Feature test macro __ARM_FEATURE_BTI_DEFAULT should be defined to 1."