diff options
author | Khem Raj <raj.khem@gmail.com> | 2012-04-25 15:35:39 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2012-05-20 20:24:36 -0700 |
commit | 253f1f3aebd1a90c55efcc6d1f585204e7f3c371 (patch) | |
tree | f48b1749f250d22e226fb49c226345fc06f2945b /meta/recipes-devtools/gcc/gcc-4.6 | |
parent | 2e315d2d0de215811e8caa80b1f13fd0e9fa53e8 (diff) | |
download | openembedded-core-253f1f3aebd1a90c55efcc6d1f585204e7f3c371.tar.gz openembedded-core-253f1f3aebd1a90c55efcc6d1f585204e7f3c371.tar.bz2 openembedded-core-253f1f3aebd1a90c55efcc6d1f585204e7f3c371.zip |
gcc-4.6, gcc-4.7: Add support for building mips64 cross compiler
Defaults to n64 ABI
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-4.6')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-4.6/mips64-default-n64.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-4.6/mips64-default-n64.patch b/meta/recipes-devtools/gcc/gcc-4.6/mips64-default-n64.patch new file mode 100644 index 0000000000..bf930ec36d --- /dev/null +++ b/meta/recipes-devtools/gcc/gcc-4.6/mips64-default-n64.patch @@ -0,0 +1,32 @@ +MIPS64 defaults to n32 ABI, this patch makes it +so that it defaults to N64 ABI + +Upstream-Status: Inappropriate [OE config specific] + +Signed-off-by: Khem Raj <raj.khem@gmail.com> +Index: gcc-4_6-branch/gcc/config.gcc +=================================================================== +--- gcc-4_6-branch.orig/gcc/config.gcc 2012-04-22 19:12:12.431061229 -0700 ++++ gcc-4_6-branch/gcc/config.gcc 2012-04-22 19:13:36.307065289 -0700 +@@ -1882,7 +1882,7 @@ + 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" +Index: gcc-4_6-branch/gcc/config/mips/linux64.h +=================================================================== +--- gcc-4_6-branch.orig/gcc/config/mips/linux64.h 2012-04-22 19:10:59.743057711 -0700 ++++ gcc-4_6-branch/gcc/config/mips/linux64.h 2012-04-22 19:11:56.919060479 -0700 +@@ -26,7 +26,7 @@ + BASE_DRIVER_SELF_SPECS, \ + LINUX_DRIVER_SELF_SPECS \ + " %{!EB:%{!EL:%(endian_spec)}}" \ +- " %{!mabi=*: -mabi=n32}" ++ " %{!mabi=*: -mabi=64}" + + #undef LIB_SPEC + #define LIB_SPEC "\ |