re PR other/62248 (Configure error with --with-fpu=fp-armv8)
authorYvan Roux <yvan.roux@linaro.org>
Wed, 27 Aug 2014 12:35:28 +0000 (12:35 +0000)
committerYvan Roux <yroux@gcc.gnu.org>
Wed, 27 Aug 2014 12:35:28 +0000 (12:35 +0000)
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

gcc/ChangeLog
gcc/config.gcc

index 2cddc45f88cbfeb3da782fa7489b915e7ba9ff3c..e4d098891853be162c22cfb1a3eeb4dd0837f5e2 100644 (file)
@@ -1,3 +1,8 @@
+2014-08-27  Yvan Roux  <yvan.roux@linaro.org>
+
+       PR other/62248
+       * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
+
 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
            Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
            Anna Tikhonova  <anna.tikhonova@intel.com>
index 6862c12724ab2fc03425c9d1bd747550efd14177..7434a0863562f52e77e79c4be9bad11b7a711720 100644 (file)
@@ -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
                "" \