diff options
author | Rob Kendrick <rob.kendrick@codethink.co.uk> | 2014-07-24 09:13:29 +0000 |
---|---|---|
committer | Rob Kendrick <rob.kendrick@codethink.co.uk> | 2014-07-24 09:13:29 +0000 |
commit | 48511fad7057e9ccd0e15d87753b3728419dfd32 (patch) | |
tree | 5dbb778a17f4fdd84e1bc9ad6041e089342e4642 | |
parent | 0a1a077d3466cd99a4ed5590db2146b3fec6fff1 (diff) | |
download | gcc-tarball-baserock/robkendrick/mips64-gcc-4.6.tar.gz |
mips64 build fixes and moprh arch hintsbaserock/robkendrick/mips64-gcc-4.6
-rw-r--r-- | gcc/config.gcc | 2 | ||||
-rw-r--r-- | gcc/config/mips/linux64.h | 2 | ||||
-rwxr-xr-x | morph-arch-config | 4 |
3 files changed, 6 insertions, 2 deletions
diff --git a/gcc/config.gcc b/gcc/config.gcc index d9122e976e..d30bd458b1 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -1887,7 +1887,7 @@ mips*-*-netbsd*) # NetBSD/mips, either endian. mips64*-*-linux* | mipsisa64*-*-linux*) tm_file="dbxelf.h elfos.h gnu-user.h linux.h glibc-stdint.h ${tm_file} mips/linux.h mips/linux64.h" tmake_file="${tmake_file} mips/t-linux64 mips/t-libgcc-mips16" - tm_defines="${tm_defines} MIPS_ABI_DEFAULT=ABI_N32" + tm_defines="${tm_defines} MIPS_ABI_DEFAULT=ABI_64" case ${target} in mips64el-st-linux-gnu) tm_file="${tm_file} mips/st.h" diff --git a/gcc/config/mips/linux64.h b/gcc/config/mips/linux64.h index 987a9915cf..9271e7bce3 100644 --- a/gcc/config/mips/linux64.h +++ b/gcc/config/mips/linux64.h @@ -26,7 +26,7 @@ along with GCC; see the file COPYING3. If not see BASE_DRIVER_SELF_SPECS, \ LINUX_DRIVER_SELF_SPECS \ " %{!EB:%{!EL:%(endian_spec)}}" \ - " %{!mabi=*: -mabi=n32}" + " %{!mabi=*: -mabi=64}" #undef LIB_SPEC #define LIB_SPEC "\ diff --git a/morph-arch-config b/morph-arch-config index ee6b769659..ff79a4fb21 100755 --- a/morph-arch-config +++ b/morph-arch-config @@ -11,5 +11,9 @@ case "$MORPH_ARCH" in --with-fpu=vfpv3-d16 \ --with-float=hard" ;; armv7*) echo "--with-arch=armv7-a" ;; + + mips64) echo "--with-arch=mips64r2 \ + --with-abi=64 \ + --enable-targets=all" ;; esac |