aboutsummaryrefslogtreecommitdiff
path: root/gcc/config.gcc
diff options
context:
space:
mode:
authorYvan Roux <yvan.roux@linaro.org>2014-08-27 12:35:28 +0000
committerYvan Roux <yroux@gcc.gnu.org>2014-08-27 12:35:28 +0000
commit14562eb9c47f3be8257f674e8196ac6ac5a967c7 (patch)
tree99b66fcc9947a79e039eeda6bda146b5884c2ed4 /gcc/config.gcc
parent4854de0d69db23f9217635e3d681d92f4be6c7be (diff)
downloadgcc-14562eb9c47f3be8257f674e8196ac6ac5a967c7.zip
gcc-14562eb9c47f3be8257f674e8196ac6ac5a967c7.tar.gz
gcc-14562eb9c47f3be8257f674e8196ac6ac5a967c7.tar.bz2
re PR other/62248 (Configure error with --with-fpu=fp-armv8)
2014-08-27 Yvan Roux <yvan.roux@linaro.org> PR other/62248 * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def. From-SVN: r214573
Diffstat (limited to 'gcc/config.gcc')
-rw-r--r--gcc/config.gcc25
1 files changed, 11 insertions, 14 deletions
diff --git a/gcc/config.gcc b/gcc/config.gcc
index 6862c127..7434a08 100644
--- a/gcc/config.gcc
+++ b/gcc/config.gcc
@@ -3523,20 +3523,17 @@ case "${target}" in
;;
esac
- case "$with_fpu" in
- "" \
- | vfp | vfp3 | vfpv3 \
- | vfpv3-fp16 | vfpv3-d16 | vfpv3-d16-fp16 | vfpv3xd \
- | vfpv3xd-fp16 | neon | neon-fp16 | vfpv4 | vfpv4-d16 \
- | fpv4-sp-d16 | neon-vfpv4 | fp-arm-v8 | neon-fp-armv8 \
- | crypto-neon-fp-armv8)
- # OK
- ;;
- *)
- echo "Unknown fpu used in --with-fpu=$with_fpu" 2>&1
- exit 1
- ;;
- esac
+ # see if it matches any of the entries in arm-fpus.def
+ if [ x"$with_fpu" = x ] \
+ || grep "^ARM_FPU(\"$with_fpu\"," \
+ ${srcdir}/config/arm/arm-fpus.def \
+ > /dev/null; then
+ # OK
+ true
+ else
+ echo "Unknown fpu used in --with-fpu=$with_fpu" 1>&2
+ exit 1
+ fi
case "$with_abi" in
"" \