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

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



Yunqiang Su <wzssyqa@gmail.com> writes:
> s/gnuabin64/gnuabi64/
>
> just a typo.
>
> --- gcc-4.9-4.9-20140322.orig/src/gcc/config.gcc        2014-03-25
> 11:06:44.935298703 +0000
> +++ gcc-4.9-4.9-20140322/src/gcc/config.gcc     2014-03-25
> 11:07:39.087774543 +0000
> @@ -1963,6 +1963,9 @@
>         tmake_file="${tmake_file} mips/t-linux64"
>         tm_defines="${tm_defines} MIPS_ABI_DEFAULT=ABI_N32"
>         case ${target} in
> +               *gnuabi64*)
> +                       tm_defines=$(echo ${tm_defines}| sed
> 's/MIPS_ABI_DEFAULT=ABI_N32/MIPS_ABI_DEFAULT=ABI_64/g')
> +                       ;;
>                 mips64el-st-linux-gnu)
>                         tm_file="${tm_file} mips/st.h"
>                         tmake_file="${tmake_file} mips/t-st"

I think the new code should be in a separate case statement, since it's
orthogonal to the mips64octeon/mipsisa64r2 choice.  With that change it
looks good though.

Thanks,
Richard


Reply to: