This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[committed] Build optimised mipsisa*-elfoabi libraries


I was wondering why some libstdc++ tests timed out on mipsisa*-elfoabi
but not on mipsisa*-elf.  It turned out the libraries for the latter
were being built without optimisation...oops!  This patch makes the
obvious correction.  I've done the same for mt-sde too, even though it
specifies -Os, because the current version would unintentionally override
$(SYSROOT_CFLAGS_FOR_TARGET) and $(DEBUG_PREFIX_CFLAGS_FOR_TARGET) too.

Tested on mipsisa64-elfoabi and applied to gcc and src.

Richard


config/
	* mt-sde (CFLAGS_FOR_TARGET, CXXFLAGS_FOR_TARGET): Use +=, not =.
	* mt-mips-elfoabi: Likewise.

Index: config/mt-sde
===================================================================
--- config/mt-sde	(revision 130651)
+++ config/mt-sde	(working copy)
@@ -6,5 +6,5 @@
 # has two purposes: it allows libraries to be used in situations where
 # $gp != our _gp, and it allows them to be built with -G8 while
 # retaining link compability with -G0 and -G4.
-CFLAGS_FOR_TARGET = -Os -minterlink-mips16 -mcode-xonly -mno-gpopt
-CXXFLAGS_FOR_TARGET = -Os -minterlink-mips16 -mcode-xonly -mno-gpopt
+CFLAGS_FOR_TARGET += -Os -minterlink-mips16 -mcode-xonly -mno-gpopt
+CXXFLAGS_FOR_TARGET += -Os -minterlink-mips16 -mcode-xonly -mno-gpopt
Index: config/mt-mips-elfoabi
===================================================================
--- config/mt-mips-elfoabi	(revision 130651)
+++ config/mt-mips-elfoabi	(working copy)
@@ -2,5 +2,5 @@
 # MIPS16 and non-MIPS16 code, but the libraries are all non-MIPS16.
 # Add -minterlink-mips16 so that the libraries can be used with both
 # ISA modes.
-CFLAGS_FOR_TARGET = -minterlink-mips16
-CXXFLAGS_FOR_TARGET = -minterlink-mips16
+CFLAGS_FOR_TARGET += -minterlink-mips16
+CXXFLAGS_FOR_TARGET += -minterlink-mips16


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]