This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
3.0.1 PATCH: Don't emit #line directives for Solaris 2/Intel .S files
- To: gcc-patches at gcc dot gnu dot org
- Subject: 3.0.1 PATCH: Don't emit #line directives for Solaris 2/Intel .S files
- From: Rainer Orth <ro at TechFak dot Uni-Bielefeld dot DE>
- Date: Tue, 26 Jun 2001 14:39:33 +0200 (MEST)
As described in
http://gcc.gnu.org/ml/gcc-bugs/2001-06/msg01328.html
the native Solaris 2/Intel as chokes on any # character in its input.
The following patch fixes this by inhibiting the generation of #line
directives for .S files and allows a full bootstrap on i386-pc-solaris2.8
with --enable-libgcj to succeed, once a couple of prerequisites are
installed, too:
http://gcc.gnu.org/ml/gcc-patches/2001-06/msg01561.html
http://gcc.gnu.org/ml/gcc-patches/2001-06/msg01559.html
http://gcc.gnu.org/ml/gcc-patches/2001-06/msg01613.html
Ok for branch and mainline?
Rainer
-----------------------------------------------------------------------------
Rainer Orth, Faculty of Technology, Bielefeld University
Email: ro@TechFak.Uni-Bielefeld.DE
Mon Jun 25 19:36:41 2001 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
* config/i386/sol2.h (CPP_SPEC): Pass -P for .S files.
Index: config/i386/sol2.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/i386/sol2.h,v
retrieving revision 1.10
diff -u -p -r1.10 sol2.h
--- sol2.h 2000/11/02 23:29:10 1.10
+++ sol2.h 2001/06/26 12:37:51
@@ -66,11 +66,14 @@ Boston, MA 02111-1307, USA. */
#define CPP_PREDEFINES \
"-Dunix -D__svr4__ -D__SVR4 -Dsun -Asystem=svr4"
+/* Solaris 2/Intel as chokes on #line directives. */
#undef CPP_SPEC
-#define CPP_SPEC "%(cpp_cpu) \
- %{pthreads:-D_REENTRANT -D_PTHREADS} \
- %{!pthreads:%{threads:-D_REENTRANT -D_SOLARIS_THREADS}} \
- %{compat-bsd:-iwithprefixbefore ucbinclude -I/usr/ucbinclude}"
+#define CPP_SPEC \
+ "%{.S:-P} \
+ %(cpp_cpu) \
+ %{pthreads:-D_REENTRANT -D_PTHREADS} \
+ %{!pthreads:%{threads:-D_REENTRANT -D_SOLARIS_THREADS}} \
+ %{compat-bsd:-iwithprefixbefore ucbinclude -I/usr/ucbinclude}"
#undef LIB_SPEC
#define LIB_SPEC \