config.gcc (powerpc*-*-*spe*): Pick 8548 as the default with_cpu if we were configure...
authorOlivier Hainque <hainque@adacore.com>
Mon, 16 Oct 2017 16:50:57 +0000 (16:50 +0000)
committerOlivier Hainque <hainque@gcc.gnu.org>
Mon, 16 Oct 2017 16:50:57 +0000 (16:50 +0000)
2017-10-16  Olivier Hainque  <hainque@adacore.com>

* gcc/config.gcc (powerpc*-*-*spe*): Pick 8548 as the default
with_cpu if we were configured for an e500v2 target cpu name.

From-SVN: r253789

gcc/ChangeLog
gcc/config.gcc

index 71f873988bf465a10bacbc819620b8712b42c4aa..572520e811e90921302a1e53a8032825c118f91e 100644 (file)
@@ -1,3 +1,8 @@
+2017-10-16  Olivier Hainque  <hainque@adacore.com>
+
+       * gcc/config.gcc (powerpc*-*-*spe*): Pick 8548 as the default
+       with_cpu if we were configured for an e500v2 target cpu name.
+
 2017-10-16  Thomas Preud'homme  <thomas.preudhomme@arm.com>
 
        * config/arm/arm-cpus.in (cortex-m33): Add nodsp option.
index 248ee36e96a6a202a46def44768a5069790663b2..94900aa4f815f914a4fb6e2b42b6d728e4db9467 100644 (file)
@@ -3437,11 +3437,18 @@ if test x$with_cpu = x ; then
       esac
       ;;
     powerpc*-*-*spe*)
+      # For SPE, start with 8540, then upgrade to 8548 if
+      # --enable-e500-double was requested explicitly or if we were
+      # configured for e500v2.
+      with_cpu=8540
       if test x$enable_e500_double = xyes; then
-         with_cpu=8548
-      else
-         with_cpu=8540
-      fi       
+        with_cpu=8548
+      fi
+      case ${target_noncanonical} in
+        e500v2*)
+          with_cpu=8548
+          ;;
+      esac
       ;;
     sparc*-*-*)
       case ${target} in