From 9b8466f43d9a3d82e5e7a89fda55d5e0676ac4c7 Mon Sep 17 00:00:00 2001 From: Neil Booth Date: Sat, 17 May 2003 07:19:56 +0000 Subject: config.gcc (sparc-*-sysv4*): Add sparc/sysv4-only.h. * 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. From-SVN: r66902 --- gcc/config/sparc/openbsd.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'gcc/config/sparc/openbsd.h') diff --git a/gcc/config/sparc/openbsd.h b/gcc/config/sparc/openbsd.h index a4333df..814ccdf 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 -/* 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 */ -- cgit v1.1