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]

Assembler flags for mips-sgi-irix6


SGI Irix 6 has a number of;
  ABIs  -32, -n32 and -64
  Instruction Set Architectures, including -mips3 and -mips4

The SGI defaults combinations are:
  -n32 -mips3 
  -64 -mips4

For a mips-sgi-irix6.5 R10K target the assembler defaults
to -mips4.  egcs/gcc does not pass a default -mipsX flag
to the assembler, so the assembler produces -mips4 objects
by default.  This is not the SGI default behaviour, nor 
the behaviour of egcs-1.0 for irix6.2


The following patch passes the appropriate flags to the assembler.
It can be applied to egcs-1.1.2 and latest snapshot egcs-19990616

--- gcc/config/mips/iris6.h.0   Thu Jun 24 15:50:31 1999
+++ gcc/config/mips/iris6.h     Thu Jun 24 15:56:20 1999
@@ -214,8 +214,9 @@
 
 /* ??? If no mabi=X option give, but a mipsX option is, then should depend
    on the mipsX option.  */
+/* If no mips[3,4] option given, give the appropriate default for mabi=X */
 #undef SUBTARGET_ASM_SPEC
-#define SUBTARGET_ASM_SPEC "%{!mabi*:-n32}"
+#define SUBTARGET_ASM_SPEC "%{!mabi*:-n32} %{!mips*: %{!mabi*:-mips3}
%{mabi=n32:-mips3} %{mabi=64:-mips4}}"
 
 /* Must pass -g0 to the assembler, otherwise it may overwrite our
    debug info with its own debug info. */


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