New bootstrap failure on sparc-solaris2.7, fails to define "sparc"

Neil Booth neil@daikokuya.co.uk
Sun May 18 21:32:00 GMT 2003


Kaveh R. Ghazi wrote:-

> Neil,
> 
> I'm getting a new bootstrap failure on sparc-sun-solaris2.7 within the
> last day or so., probably related to recent changes you made.  It dies
> in stage1 building any libgcc target file.  E.g.

Fixed with this patch.  Sadly the headers are so tangled that there is
no header just for solaris, which is what we really need.  I've
attempted to preserve this information with a comment.  Hopefully
we can fix this properly later.

Neil.

	* config/sparc/sparc.h: Define sparc for now.

Index: sparc.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/sparc/sparc.h,v
retrieving revision 1.224
diff -u -p -r1.224 sparc.h
--- sparc.h	17 May 2003 07:19:56 -0000	1.224
+++ sparc.h	18 May 2003 19:59:35 -0000
@@ -25,11 +25,13 @@ Boston, MA 02111-1307, USA.  */
 /* Note that some other tm.h files include this one and then override
    whatever definitions are necessary.  */
 
-/* Target CPU builtins.  */
+/* Target CPU builtins.  FIXME: Defining sparc is for the benefit of
+   Solaris only; otheriwse just define __sparc__.  Sadly the headers
+   are such a mess there is no Solaris-specific header.  */
 #define TARGET_CPU_CPP_BUILTINS()		\
   do						\
     {						\
-	builtin_define ("__sparc__");		\
+	builtin_define_std ("sparc");		\
 	if (TARGET_64BIT)			\
 	  { 					\
 	    builtin_assert ("cpu=sparc");	\



More information about the Gcc-bugs mailing list