Bug#827801: gcc-5/gcc-6: Please enable the default optimize arch to mips32r2 for o32
Package: src:gcc-6
This patch switch the default arch for mips o32 to mips32r2.
We switch this so late due to the previous lack of build machines,
and we still had a loongson 2f machine.
And gcc support FPXX from 5.
We can support Loongson 3 only with FPXX support.
And now, the 2f machines has been removed from Debian,
so it is time for us to switch this.
Please also add this patch to gcc-5.
do *NOT* apply it to gcc-4.9.
--
YunQiang Su
diff --git a/debian/rules2 b/debian/rules2
index 0f3eddc..4753af2 100644
--- a/debian/rules2
+++ b/debian/rules2
@@ -633,11 +633,11 @@ ifneq (,$(findstring mips-linux,$(DEB_TARGET_GNU_TYPE)))
endif
ifneq (,$(findstring mipsel-linux,$(DEB_TARGET_GNU_TYPE)))
- CONFARGS += --with-arch-32=mips2 --with-tune-32=mips32r2 --with-fp-32=xx
+ CONFARGS += --with-arch-32=mips32r2 --with-fp-32=xx
ifeq ($(multilib),yes)
ifeq ($(biarchn32)-$(biarch64),yes-yes)
CONFARGS += --enable-targets=all
- CONFARGS += --with-arch-64=mips3 --with-tune-64=mips64r2
+ CONFARGS += --with-arch-64=mips64r2
endif
endif
endif
@@ -647,8 +647,8 @@ ifneq (,$(findstring mips64el-linux-gnuabin32,$(DEB_TARGET_GNU_TYPE)))
ifeq ($(multilib),yes)
ifeq ($(biarchn32)-$(biarch32),yes-yes)
CONFARGS += --enable-targets=all
- CONFARGS += --with-arch-64=mips3 --with-tune-64=mips64
- CONFARGS += --with-arch-32=mips2 --with-tune-32=mips32 --with-fp-32=xx
+ CONFARGS += --with-arch-64=mips64r2
+ CONFARGS += --with-arch-32=mips32r2 --with-fp-32=xx
endif
endif
endif
@@ -657,8 +657,8 @@ ifneq (,$(findstring mips64-linux-gnuabin32,$(DEB_TARGET_GNU_TYPE)))
ifeq ($(multilib),yes)
ifeq ($(biarchn32)-$(biarch32),yes-yes)
CONFARGS += --enable-targets=all
- CONFARGS += --with-arch-64=mips3 --with-tune-64=mips64
- CONFARGS += --with-arch-32=mips2 --with-tune-32=mips32 --with-fp-32=xx
+ CONFARGS += --with-arch-64=mips64r2
+ CONFARGS += --with-arch-32=mips32r2 --with-fp-32=xx
endif
endif
endif
Reply to: