]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
config.gcc (powerpc-*-linux*): Merge variants.
authorAlan Modra <amodra@bigpond.net.au>
Thu, 2 Apr 2009 23:53:29 +0000 (23:53 +0000)
committerAlan Modra <amodra@gcc.gnu.org>
Thu, 2 Apr 2009 23:53:29 +0000 (10:23 +1030)
* config.gcc (powerpc-*-linux*): Merge variants.
* config.host (powerpc-*-linux*altivec*, powerpc-*-linux*spe): Delete.

From-SVN: r145484

gcc/ChangeLog
gcc/config.gcc
libgcc/ChangeLog
libgcc/config.host

index 6b8ad457ae6cb6747a5d9fa25810afa1a29480f6..7c7b7cf57453793cbec1cc9646254d689e4834a4 100644 (file)
@@ -1,3 +1,7 @@
+2009-04-03  Alan Modra  <amodra@bigpond.net.au>
+
+       * config.gcc (powerpc-*-linux*): Merge variants.
+
 2009-04-02  Chao-ying Fu  <fu@mips.com>
            James Grosbach <james.grosbach@microchip.com>
 
index 4d1eb8dfc0ef956af2c2ab722d00773107acab29..3eb886fbb45fc076dbcfd86eeef53d1e37737b3b 100644 (file)
@@ -1805,27 +1805,17 @@ powerpc-*-rtems*)
        extra_options="${extra_options} rs6000/sysv4.opt"
        tmake_file="rs6000/t-fprules rs6000/t-fprules-fpbit rs6000/t-rtems t-rtems rs6000/t-ppccomm"
        ;;
-powerpc-*-linux*altivec*)
-       tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux.h rs6000/linuxaltivec.h glibc-stdint.h"
-       extra_options="${extra_options} rs6000/sysv4.opt"
-       tmake_file="rs6000/t-fprules rs6000/t-fprules-softfp soft-fp/t-softfp rs6000/t-ppcos ${tmake_file} rs6000/t-ppccomm"
-       ;;
-powerpc-*-linux*spe*)
-       tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux.h rs6000/linuxspe.h rs6000/e500.h glibc-stdint.h"
-       extra_options="${extra_options} rs6000/sysv4.opt"
-       tmake_file="t-dfprules rs6000/t-fprules rs6000/t-fprules-softfp soft-fp/t-softfp rs6000/t-ppcos ${tmake_file} rs6000/t-ppccomm"
-       ;;
-powerpc-*-linux*paired*)
-        tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux.h rs6000/750cl.h glibc-stdint.h"
-        extra_options="${extra_options} rs6000/sysv4.opt"
-        tmake_file="rs6000/t-fprules rs6000/t-fprules-softfp soft-fp/t-softfp rs6000/t-ppcos ${tmake_file} rs6000/t-ppccomm"
-        ;;
 powerpc-*-linux*)
        tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h"
        extra_options="${extra_options} rs6000/sysv4.opt"
        tmake_file="t-dfprules rs6000/t-fprules rs6000/t-fprules-softfp soft-fp/t-softfp rs6000/t-ppcos ${tmake_file} rs6000/t-ppccomm"
-       case ${enable_targets}:${cpu_is_64bit} in
-           *powerpc64* | all:* | *:yes)
+       maybe_biarch=yes
+       case ${target} in
+           powerpc-*-linux*spe* | powerpc-*-linux*paired*)
+               maybe_biarch= ;;
+       esac
+       case ${maybe_biarch}:${enable_targets}:${cpu_is_64bit} in
+           yes:*powerpc64* | yes:all:* | yes:*:yes)
                if test x$cpu_is_64bit = xyes; then
                    tm_file="${tm_file} rs6000/default64.h"
                fi
@@ -1837,6 +1827,14 @@ powerpc-*-linux*)
                tm_file="${tm_file} rs6000/linux.h glibc-stdint.h"
                ;;
        esac
+       case ${target} in
+           powerpc*-*-linux*altivec*)
+               tm_file="${tm_file} rs6000/linuxaltivec.h" ;;
+           powerpc*-*-linux*spe*)
+               tm_file="${tm_file} rs6000/linuxspe.h rs6000/e500.h" ;;
+           powerpc*-*-linux*paired*)
+               tm_file="${tm_file} rs6000/750cl.h" ;;
+       esac
        if test x${enable_secureplt} = xyes; then
                tm_file="rs6000/secureplt.h ${tm_file}"
        fi
index d9d2b3d9834c502eb751f88311262196d8485a08..ebabcfe2b64c37e383ca150aa249fc3a71f15fa3 100644 (file)
@@ -1,3 +1,7 @@
+2009-04-03  Alan Modra  <amodra@bigpond.net.au>
+
+       * config.host (powerpc-*-linux*altivec*, powerpc-*-linux*spe): Delete.
+
 2009-03-28  Joseph Myers  <joseph@codesourcery.com>
 
        * config.host (arm-*-coff*, armel-*-coff*, arm-semi-aof,
index ad2ca4194e67364ec336102e743e671b1adf2a77..2374ead93508dd1b1563aa20bdfb504530028dae 100644 (file)
@@ -448,12 +448,6 @@ powerpc-*-eabi*)
        ;;
 powerpc-*-rtems*)
        ;;
-powerpc-*-linux*altivec*)
-       tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-ldbl128"
-       ;;
-powerpc-*-linux*spe*)
-       tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-ldbl128 t-softfp"
-       ;;
 powerpc-*-linux*)
        tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-ldbl128 t-softfp"
        ;;