From: Olivier Hainque Date: Mon, 16 Oct 2017 16:50:57 +0000 (+0000) Subject: config.gcc (powerpc*-*-*spe*): Pick 8548 as the default with_cpu if we were configure... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3094082db0975cdbc2c125dd0845f55594b14529;p=gcc.git config.gcc (powerpc*-*-*spe*): Pick 8548 as the default with_cpu if we were configured for an e500v2 target... 2017-10-16 Olivier Hainque * 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 71f873988bf..572520e811e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2017-10-16 Olivier Hainque + + * 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 * config/arm/arm-cpus.in (cortex-m33): Add nodsp option. diff --git a/gcc/config.gcc b/gcc/config.gcc index 248ee36e96a..94900aa4f81 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