aboutsummaryrefslogtreecommitdiff
path: root/gcc/config.gcc
diff options
context:
space:
mode:
authorArthur Loiret <aloiret@debian.org>2011-07-11 11:22:15 +0000
committerMatthias Klose <doko@gcc.gnu.org>2011-07-11 11:22:15 +0000
commitbd5ab709de98ed49524b96cae15de692dd65a64d (patch)
tree3ceae419a24876fa4fbfb9c66d24a0142b0e3279 /gcc/config.gcc
parentd3b7e946d7a2c298e87a0affd06caedb7639f180 (diff)
downloadgcc-bd5ab709de98ed49524b96cae15de692dd65a64d.zip
gcc-bd5ab709de98ed49524b96cae15de692dd65a64d.tar.gz
gcc-bd5ab709de98ed49524b96cae15de692dd65a64d.tar.bz2
config.gcc (mips*-*-linux*): If 'enabled_targets' is 'all'...
2011-07-11 Arthur Loiret <aloiret@debian.org> Matthias Klose <doko@debian.org> * config.gcc (mips*-*-linux*): If 'enabled_targets' is 'all', build a tri-arch compiler defaulting to 32-bit (ABI o32). In this case: (tm_file): Add mips/linux64.h. (tmake_file): Add mips/t-linux64. (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32. * config/mips/linux64.h (DRIVER_SELF_SPECS): Use MULTILIB_ABI_DEFAULT instead of hardcoded mabi=n32. * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc convention. Co-Authored-By: Matthias Klose <doko@debian.org> From-SVN: r176145
Diffstat (limited to 'gcc/config.gcc')
-rw-r--r--gcc/config.gcc5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/config.gcc b/gcc/config.gcc
index c190fa7..e51a44a 100644
--- a/gcc/config.gcc
+++ b/gcc/config.gcc
@@ -1862,6 +1862,11 @@ mips64*-*-linux* | mipsisa64*-*-linux*)
mips*-*-linux*) # Linux MIPS, either endian.
tm_file="dbxelf.h elfos.h gnu-user.h linux.h glibc-stdint.h ${tm_file} mips/linux.h"
tmake_file="${tmake_file} mips/t-libgcc-mips16"
+ if test x$enable_targets = xall; then
+ tm_file="${tm_file} mips/linux64.h"
+ tmake_file="${tmake_file} mips/t-linux64"
+ tm_defines="${tm_defines} MIPS_ABI_DEFAULT=ABI_32"
+ fi
case ${target} in
mipsisa32r2*)
tm_defines="${tm_defines} MIPS_ISA_DEFAULT=33"