This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: 3.4 PATCH: Don't generate #line directives for .S files andIRIX 6 O32 ABI
Eric Christopher writes:
> No. use SUBTARGET_CPP_SPEC instead and #define that to IRIX_CPP_SPEC.
Here's the revised patch. Re-bootstrapped (together with the rest of my
O32 integration patch) on mips-sgi-irix6.5 with --enable-libgcj and
regtested for all three ABIs.
Ok for mainline now?
Rainer
-----------------------------------------------------------------------------
Rainer Orth, Faculty of Technology, Bielefeld University
Thu Oct 2 19:24:42 2003 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
* config/mips/iris6.h (SUBTARGET_CPP_SPEC): Define.
Index: gcc/config/mips/iris6.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/mips/iris6.h,v
retrieving revision 1.69
diff -u -p -r1.69 iris6.h
--- gcc/config/mips/iris6.h 27 Sep 2003 04:48:25 -0000 1.69
+++ gcc/config/mips/iris6.h 9 Oct 2003 17:58:39 -0000
@@ -57,6 +57,11 @@ Boston, MA 02111-1307, USA. */
#undef SUBTARGET_CC1_SPEC
#define SUBTARGET_CC1_SPEC ""
+/* #line directives let the O32 assembler create object files that cause the
+ O32 linker to crash. */
+#undef SUBTARGET_CPP_SPEC
+#define SUBTARGET_CPP_SPEC "%{mabi=32: %{.S:-P}}"
+
/* We must pass -D_LONGLONG always, even when -ansi is used, because IRIX 6
system header files require it. This is OK, because gcc never warns
when long long is used in system header files. Alternatively, we can