]> git.ipfire.org Git - thirdparty/gcc.git/commit
[arm] require armv7 support for [PR120424] master trunk
authorAlexandre Oliva <oliva@adacore.com>
Fri, 22 Aug 2025 00:46:22 +0000 (21:46 -0300)
committerAlexandre Oliva <oliva@gnu.org>
Fri, 22 Aug 2025 00:46:22 +0000 (21:46 -0300)
commitd94eb26871d730d7f670a0d3367e976ecb05736a
tree410e65259945f9f43a42e2b69d711604a641899e
parentc6d9b8023b8f2bbc52c5bd51e9c648fa096ed88a
[arm] require armv7 support for [PR120424]

Without stating the architecture version required by the test, test
runs with options that are incompatible with the required
architecture version fail, e.g. -mfloat-abi=hard.

armv7 was not covered by the long list of arm variants in
target-supports.exp, so add it, and use it for the effective target
requirement and for the option.

for  gcc/testsuite/ChangeLog

PR rtl-optimization/120424
* lib/target-supports.exp (arm arches): Add arm_arch_v7.
* g++.target/arm/pr120424.C: Require armv7 support.  Use
dg-add-options arm_arch_v7 instead of explicit -march=armv7.
gcc/testsuite/g++.target/arm/pr120424.C
gcc/testsuite/lib/target-supports.exp