sysdeps: arm: Fix preconfigure script for ARMv8/v9 targets [BZ #29698]
commita885fc2d6897d3baa438e2594a92f0125f1258a9
authorFelix Riemann <felix.riemann@sma.de>
Tue, 18 Oct 2022 15:20:44 +0000 (18 17:20 +0200)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Thu, 20 Oct 2022 14:23:05 +0000 (20 11:23 -0300)
tree57ccf4759385a540d76cc3b1bf628b967b6ec2e5
parent0ff92021c045ee53b91bd42fa3fbbb923a6ffb17
sysdeps: arm: Fix preconfigure script for ARMv8/v9 targets [BZ #29698]

The ARM preconfigure script tries to detect the capabilities of the
target platform by checking the compiler's predefined architecture
macros. However, if the compiler is tuning for AArch32 on ARMv8/v9 this
step fails:

checking for sysdeps preconfigure fragments... aarch64 alpha arc arm
WARNING: arm/preconfigure: Did not find ARM architecture type; using default

This is because preconfigure.ac doesn't escape the square brackets in
the glob for matching compilers targeting ARMv8. Adding another pair of
brackets to escape the first pair fixes this:

checking for sysdeps preconfigure fragments... aarch64 alpha arc arm
 Found compiler is configured for something newer than v7 - using v7

Signed-off-by: Felix Riemann <felix.riemann@sma.de>
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
sysdeps/arm/preconfigure
sysdeps/arm/preconfigure.ac