aboutsummaryrefslogtreecommitdiff
path: root/gcc/config.gcc
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2013-09-03 08:10:40 +0930
committerAlan Modra <amodra@gcc.gnu.org>2013-09-03 08:10:40 +0930
commit93ed07e21adc82b35f451dcf532b833f67c110ce (patch)
treef7719c5dce9a6b84f5e87138af7ef2db0ee5d662 /gcc/config.gcc
parente35096918493d92c03f4d6483bfd07f5ec6a998e (diff)
downloadgcc-93ed07e21adc82b35f451dcf532b833f67c110ce.zip
gcc-93ed07e21adc82b35f451dcf532b833f67c110ce.tar.gz
gcc-93ed07e21adc82b35f451dcf532b833f67c110ce.tar.bz2
config.gcc (powerpc*-*-linux*): Add support for little-endian multilibs to big-endian target and vice versa.
* config.gcc (powerpc*-*-linux*): Add support for little-endian multilibs to big-endian target and vice versa. * config/rs6000/t-linux64: Use := assignment on all vars. (MULTILIB_EXTRA_OPTS): Remove fPIC. (MULTILIB_OSDIRNAMES): Specify using mapping from multilib_options. * config/rs6000/t-linux64le: New file. * config/rs6000/t-linux64bele: New file. * config/rs6000/t-linux64lebe: New file. From-SVN: r202190
Diffstat (limited to 'gcc/config.gcc')
-rw-r--r--gcc/config.gcc15
1 files changed, 14 insertions, 1 deletions
diff --git a/gcc/config.gcc b/gcc/config.gcc
index 7e1d529..eeab290 100644
--- a/gcc/config.gcc
+++ b/gcc/config.gcc
@@ -2139,7 +2139,7 @@ powerpc*-*-linux*)
tmake_file="rs6000/t-fprules rs6000/t-ppcos ${tmake_file} rs6000/t-ppccomm"
case ${target} in
powerpc*le-*-*)
- tm_file="${tm_file} rs6000/sysv4le.h" ;;
+ tm_file="${tm_file} rs6000/sysv4le.h" ;;
esac
maybe_biarch=yes
case ${target} in
@@ -2162,6 +2162,19 @@ powerpc*-*-linux*)
fi
tm_file="rs6000/biarch64.h ${tm_file} rs6000/linux64.h glibc-stdint.h"
tmake_file="$tmake_file rs6000/t-linux64"
+ case ${target} in
+ powerpc*le-*-*)
+ tmake_file="$tmake_file rs6000/t-linux64le"
+ case ${enable_targets} in
+ all | *powerpc64-* | *powerpc-*)
+ tmake_file="$tmake_file rs6000/t-linux64lebe" ;;
+ esac ;;
+ *)
+ case ${enable_targets} in
+ all | *powerpc64le-* | *powerpcle-*)
+ tmake_file="$tmake_file rs6000/t-linux64bele" ;;
+ esac ;;
+ esac
extra_options="${extra_options} rs6000/linux64.opt"
;;
*)