3.4 PATCH: Don't generate #line directives for .S files and IRIX 6 O32 ABI

Rainer Orth ro@TechFak.Uni-Bielefeld.DE
Tue Oct 7 12:12:00 GMT 2003


Eric Christopher writes:

> > Ok for mainline?
> 
> No. use SUBTARGET_CPP_SPEC instead and #define that to IRIX_CPP_SPEC.

I tried that, though admittedly by editing the specs directly, but gcc
choked on me:

--- specs.save  Thu Oct  2 03:57:53 2003
+++ specs.subtarget_cpp_spec    Tue Oct  7 14:06:53 2003
@@ -113,2 +113,3 @@
 *subtarget_cpp_spec:
+%{mabi=32: %{.S:-P}}
 
$ ./xgcc -B./ -v -specs specs.subtarget_cpp_spec -c test.S
Using built-in specs.
Reading specs from ./specs.subtarget_cpp_spec
xgcc: specs file malformed after 5161 characters

while the equivalent modification of cpp_spec proper worked this way:

--- specs.save  Thu Oct  2 03:57:53 2003
+++ specs.cpp_spec      Thu Oct  2 21:08:56 2003
@@ -17,3 +17,3 @@
 *cpp:
-%(subtarget_cpp_spec)
+%{mabi=32: %{.S:-P}} %(subtarget_cpp_spec)
 
I recall that I had the same problem when adding -P to the Solaris 2/x86
CPP_SPEC (cf. config/i386/sol2.h).

I can try again with a fresh build, though.

Btw., did you have a chance to have a look at the IRIX 6 O32 patch?

	http://gcc.gnu.org/ml/gcc-patches/2003-09/msg02075.html

Thanks.
	Rainer



More information about the Gcc-patches mailing list