* config/sparc/sparc.h: Define sparc for now.
authorNeil Booth <neil@daikokuya.co.uk>
Sun, 18 May 2003 20:02:36 +0000 (20:02 +0000)
committerNeil Booth <neil@gcc.gnu.org>
Sun, 18 May 2003 20:02:36 +0000 (20:02 +0000)
From-SVN: r66938

gcc/ChangeLog
gcc/config/sparc/sparc.h

index 47ea0f7706f26b9016703e1b00086364ade64925..fab4c227e6d1013d28966dc334bf60fe47c292ce 100644 (file)
@@ -1,3 +1,6 @@
+2003-05-18  Neil Booth  <neil@daikokuya.co.uk>
+
+       * config/sparc/sparc.h: Define sparc for now.
 2003-05-18  Nathanael Nerode  <neroden@gcc.gnu.org>
 
        * config.gcc: Clear xm_file, md_file at the beginning of each pass.
index 05311488e9d8010ab5552668a60cca09b334c351..3ec9cded6e84fc761a04c87ca76545c87121ce72 100644 (file)
@@ -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");       \