From: Yvan Roux Date: Wed, 27 Aug 2014 12:35:28 +0000 (+0000) Subject: re PR other/62248 (Configure error with --with-fpu=fp-armv8) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=14562eb9c47f3be8257f674e8196ac6ac5a967c7;p=gcc.git re PR other/62248 (Configure error with --with-fpu=fp-armv8) 2014-08-27 Yvan Roux PR other/62248 * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def. From-SVN: r214573 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2cddc45f88c..e4d09889185 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2014-08-27 Yvan Roux + + PR other/62248 + * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def. + 2014-08-27 Alexander Ivchenko Maxim Kuznetsov Anna Tikhonova diff --git a/gcc/config.gcc b/gcc/config.gcc index 6862c12724a..7434a086356 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 "" \