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]

[PATCH mips] Pass -msoft-float/-mhard-float flags to GAS


Recent changes to the MIPS binutils sources have made it necessary for
GCC to pass the -msoft-float to the assembler if it wants an object
file marked as soft-float.  This patch makes GCC pass any -mhard-float,
or -msoft-float flags that were used on the compile line on to the
assembler so the executable is marked appropriately.  I did not do
anything with -mno-float because the GNU assembler doesn't have a 
-mno-float flag.

Without this patch (and a second one I will submit shortly) I cannot
build soft-float multilibs with the latest GCC and top-of-tree binutils.

Tested with the mips-mti-linux-gnu toolchain.

OK to checkin?

Steve Ellcey
sellcey@mips.com



2014-08-08  Steve Ellcey  <sellcey@mips.com>

	* config/mips/mips.h (ASM_SPEC): Pass float options to assembler. 


diff --git a/gcc/config/mips/mips.h b/gcc/config/mips/mips.h
index 8d7a09f..c1b57b1 100644
--- a/gcc/config/mips/mips.h
+++ b/gcc/config/mips/mips.h
@@ -1187,6 +1187,7 @@ struct mips_cpu_info {
 %{mshared} %{mno-shared} \
 %{msym32} %{mno-sym32} \
 %{mtune=*} \
+%{mhard-float} %{msoft-float} \
 %(subtarget_asm_spec)"
 
 /* Extra switches sometimes passed to the linker.  */


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