$OpenBSD: patch-gcc_config_sparc_openbsd_h,v 1.2 2003/11/13 19:09:47 espie Exp $
--- gcc/config/sparc/openbsd.h.orig	2003-11-11 15:37:54.000000000 +0100
+++ gcc/config/sparc/openbsd.h	2003-11-11 15:39:02.000000000 +0100
@@ -23,7 +23,14 @@ Boston, MA 02111-1307, USA.  */
 #include <openbsd.h>
 
 /* Run-time target specifications.  */
-#define CPP_PREDEFINES "-D__unix__ -D__sparc__ -D__OpenBSD__ -Asystem=unix -Asystem=OpenBSD -Acpu=sparc -Amachine=sparc"
+#define TARGET_OS_CPP_BUILTINS()			\
+  do							\
+    {							\
+      OPENBSD_OS_CPP_BUILTINS_ELF();			\
+      builtin_define ("__sparc");			\
+      builtin_define ("__sparc__");			\
+    }							\
+  while (0)
 
 /* Layout of source language data types */
 
