aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Hainque <hainque@adacore.com>2017-10-16 16:50:57 +0000
committerOlivier Hainque <hainque@gcc.gnu.org>2017-10-16 16:50:57 +0000
commit3094082db0975cdbc2c125dd0845f55594b14529 (patch)
tree3f1daf40898241adb27f1834cfdc382195d1509d
parent39920b043de8874e810ea7e251428f77212c8c7f (diff)
downloadgcc-3094082db0975cdbc2c125dd0845f55594b14529.zip
gcc-3094082db0975cdbc2c125dd0845f55594b14529.tar.gz
gcc-3094082db0975cdbc2c125dd0845f55594b14529.tar.bz2
config.gcc (powerpc*-*-*spe*): Pick 8548 as the default with_cpu if we were configured for an e500v2 target...
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
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config.gcc15
2 files changed, 16 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 71f8739..572520e 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/config.gcc b/gcc/config.gcc
index 248ee36..94900aa 100644
--- a/gcc/config.gcc
+++ b/gcc/config.gcc
@@ -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