]> git.ipfire.org Git - thirdparty/gcc.git/commit
arm: testsuite: avoid hard-float ABI incompatibility with -march
authorRichard Earnshaw <rearnsha@arm.com>
Thu, 2 Nov 2023 15:28:58 +0000 (15:28 +0000)
committerRichard Earnshaw <rearnsha@arm.com>
Mon, 13 Nov 2023 14:15:54 +0000 (14:15 +0000)
commited52bc2e30cb7992e8a88113481bde0cb1ec4963
tree8f780b17c9ebd329eaf6ab1735353af8cada62bb
parentccbc8bd4d4df71c9a55722761bf9c7d3c924d8b9
arm: testsuite: avoid hard-float ABI incompatibility with -march

A number of tests in the gcc testsuite, especially for arm-specific
targets, add various flags to control the architecture.  These run
into problems when the compiler is configured with -mfpu=auto if the
new architecture lacks an architectural feature that implies we have
floating-point instructions.

The testsuite makes this worse as it falls foul of this requirement in
the base architecture strings provided by target-supports.exp.

To fix this we add "+fp", or something equivalent to this, to all the
base architecture specifications.  The feature will be ignored if the
float ABI is set to soft.

gcc/testsuite:

* lib/target-supports.exp (check_effective_target_arm_arch_FUNC_ok):
Add base FPU specifications to all architectures that can support
one.
gcc/testsuite/lib/target-supports.exp