[patch] fix sparc #cpu and #machine assertions

Kaveh R. Ghazi ghazi@caip.rutgers.edu
Sat Nov 8 01:36:00 GMT 2003


Noticed this by visual inspection, the 32 vs 64 bits are backwards.
Bootstrapped on sparc-sun-solaris2.7, no regressions.

Ok for mainline?

		Thanks,
		--Kaveh


2003-11-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>

	* config/sparc/sparc.h (TARGET_CPU_CPP_BUILTINS): Fix sparc vs
	sparc64 #cpu and #machine assertions.

diff -rup orig/egcc-CVS20031105/gcc/config/sparc/sparc.h egcc-CVS20031105/gcc/config/sparc/sparc.h
--- orig/egcc-CVS20031105/gcc/config/sparc/sparc.h	Tue Oct  7 20:01:28 2003
+++ egcc-CVS20031105/gcc/config/sparc/sparc.h	Fri Nov  7 00:53:27 2003
@@ -34,13 +34,13 @@ Boston, MA 02111-1307, USA.  */
 	builtin_define_std ("sparc");		\
 	if (TARGET_64BIT)			\
 	  { 					\
-	    builtin_assert ("cpu=sparc");	\
-	    builtin_assert ("machine=sparc");	\
+	    builtin_assert ("cpu=sparc64");	\
+	    builtin_assert ("machine=sparc64");	\
 	  }					\
 	else					\
 	  { 					\
-	    builtin_assert ("cpu=sparc64");	\
-	    builtin_assert ("machine=sparc64");	\
+	    builtin_assert ("cpu=sparc");	\
+	    builtin_assert ("machine=sparc");	\
 	  }					\
     }						\
   while (0)




More information about the Gcc-patches mailing list