This is the mail archive of the gcc-bugs@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]

Re: IRIX: -mabi=n32 generates -mips4 code instead of -mips3


Billinghurst, David (RTD) <David.Billinghurst@riotinto.com.au> writes:

> I think it is a problem, and suggested the patch
> http://gcc.gnu.org/ml/gcc-patches/1999-06/msg00562.html
> It still works with the current snapshots.

I failed to apply the patch on gcc-2.95.2:

(brian) /src/sicstus/jojo/gcc-2.95.2 ->	patch < ../gcc-irix6-patch.txt
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|--- 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
--------------------------
Patching file gcc/config/mips/iris6.h using Plan A...
patch: **** malformed patch at line 11: %{mabi=n32:-mips3} %{mabi=64:-mips4}}"

I tried to apply the patch manually, but that didn't help.

The patch at http://gcc.gnu.org/ml/gcc-patches/1999-06/msg00562.html does
seem to be mangled, though.

/Jesper

-----------------------------------------------------------------
Jesper Eskilson <jojo@sics.se>           http://www.sics.se/~jojo
-----------------------------------------------------------------
--- 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]