[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#741543: When build for mips64el, the default target is mipsn32el



Package: gcc-4.9
Version: 4.9-20140303-1

Hi, you lost a segment of patch in gcc-multiarch.diff for mips64(el), etc

--- gcc-4.9-4.9-20140303.orig/src/gcc/config.gcc        2014-03-13
16:27:17.509523462 +0000
+++ gcc-4.9-4.9-20140303/src/gcc/config.gcc     2014-03-13
16:29:31.845902397 +0000

@@ -1961,8 +1961,11 @@

        tm_file="dbxelf.h elfos.h gnu-user.h linux.h linux-android.h
glibc-stdint.h ${tm_file} mips/gnu-user.h mips/gnu-user64.h
mips/linux64.h mips/linux-common.h"
        extra_options="${extra_options} linux-android.opt"
        tmake_file="${tmake_file} mips/t-linux64"
-       tm_defines="${tm_defines} MIPS_ABI_DEFAULT=ABI_N32"
+       tm_defines="${tm_defines} MIPS_ABI_DEFAULT=ABI_64"
        case ${target} in
+               *gnuabin32*)
+                       tm_defines=$(echo ${tm_defines}| sed
's/MIPS_ABI_DEFAULT=ABI_64/MIPS_ABI_DEFAULT=ABI_N32/g')
+                       ;;
                mips64el-st-linux-gnu)
                        tm_file="${tm_file} mips/st.h"
                        tmake_file="${tmake_file} mips/t-st"


See the gcc-multiarch.diff in gcc-4.8 for this patch.

Thank your very much.


-- 
Yunqiang Su


Reply to: