summaryrefslogtreecommitdiff
path: root/gcc/config/sparc/openbsd.h
diff options
context:
space:
mode:
authorneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2003-05-17 07:19:56 +0000
committerneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2003-05-17 07:19:56 +0000
commit06585cbc8acbce02d20f899caf8fb1e140aea890 (patch)
treef99fc63c8af0a9699f048d06ce3c1989fad067a5 /gcc/config/sparc/openbsd.h
parentdd6fed02c5470287b47a28aa627698bdaaed18a4 (diff)
downloadgcc-06585cbc8acbce02d20f899caf8fb1e140aea890.tar.gz
* config.gcc (sparc-*-sysv4*): Add sparc/sysv4-only.h.
* sparc/aout.h, sparc/elf.h, sparc/freebsd.h, sparc/linux.h, sparc/linux64.h, sparc/lite.h, sparc/litecoff.h, sparc/liteelf.h, sparc/netbsd-elf.h, sparc/openbsd.h, sparc/openbsd64.h, sparc/pbd.h, sparc/rtemself.h, sparc/sol2-64.h, sparc/sol2-bi.h, sparc/sol2.h, sparc/sp64-elf.h, sparc/sp86-elf.h, sparc/sparc.h, sparc/sysv4.h, * sparc/sysv4-only.h: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@66902 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/sparc/openbsd.h')
-rw-r--r--gcc/config/sparc/openbsd.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/gcc/config/sparc/openbsd.h b/gcc/config/sparc/openbsd.h
index a4333df79ab..814ccdf8d02 100644
--- a/gcc/config/sparc/openbsd.h
+++ b/gcc/config/sparc/openbsd.h
@@ -22,8 +22,16 @@ Boston, MA 02111-1307, USA. */
#define OBSD_OLD_GAS
#include <openbsd.h>
-/* Run-time target specifications. */
-#define CPP_PREDEFINES "-D__unix__ -D__sparc__ -D__OpenBSD__ -Asystem=unix -Asystem=OpenBSD -Acpu=sparc -Amachine=sparc"
+/* Target OS builtins. */
+#define TARGET_OS_CPP_BUILTINS() \
+ do \
+ { \
+ builtin_define ("__unix__"); \
+ builtin_define ("__OpenBSD__"); \
+ builtin_assert ("system=unix"); \
+ builtin_assert ("system=OpenBSD"); \
+ } \
+ while (0)
/* Layout of source language data types */