* config/netbsd.h (CPP_SPEC): Remove.
* config/i386/netbsd-elf.h (CPP_SPEC): Define.
* config/i386/netbsd.h (CPP_SPEC): Define.
* config/ns32k/netbsd.h (CPP_SPEC): Define.
* config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
* config/sparc/netbsd.h (CPP_SPEC): Define.
* config/vax/netbsd.h (CPP_SPEC): Define.
From-SVN: r53314
+2002-05-09 Jason Thorpe <thorpej@wasabisystems.com>
+
+ * config/netbsd.h (CPP_SPEC): Remove.
+ * config/i386/netbsd-elf.h (CPP_SPEC): Define.
+ * config/i386/netbsd.h (CPP_SPEC): Define.
+ * config/ns32k/netbsd.h (CPP_SPEC): Define.
+ * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
+ * config/sparc/netbsd.h (CPP_SPEC): Define.
+ * config/vax/netbsd.h (CPP_SPEC): Define.
+
2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
* read-rtl.c: Fix formatting.
#define CPP_PREDEFINES \
"-D__NetBSD__ -D__ELF__ -Asystem=unix -Asystem=NetBSD"
+/* Provide a CPP_SPEC appropriate for NetBSD. Currently we just deal with
+ the GCC option `-posix'. */
+
+#undef CPP_SPEC
+#define CPP_SPEC "%(cpp_cpu) %{posix:-D_POSIX_SOURCE}"
+
+
/* Make gcc agree with <machine/ansi.h> */
#undef SIZE_TYPE
#undef CPP_PREDEFINES
#define CPP_PREDEFINES "-Dunix -D__NetBSD__ \
-Asystem=unix -Asystem=bsd -Asystem=NetBSD"
+
+#undef CPP_SPEC
+#define CPP_SPEC "%(cpp_cpu) %{posix:-D_POSIX_SOURCE}"
+
\f
#undef SIZE_TYPE
#define SIZE_TYPE "unsigned int"
#endif /* NETBSD_NATIVE */
-/* Provide a CPP_SPEC appropriate for NetBSD. Currently we just deal with
- the GCC option `-posix'. */
-
-#undef CPP_SPEC
-#define CPP_SPEC "%(cpp_cpu) %{posix:-D_POSIX_SOURCE}"
-
-
/* Provide a LIB_SPEC appropriate for NetBSD. Just select the appropriate
libc, depending on whether we're doing profiling; if `-posix' is specified,
link against the appropriate libposix first. Don't include libc when
#undef CPP_PREDEFINES
#define CPP_PREDEFINES "-Dns32k -Dns32000 -Dns32532 -D__NetBSD__ -Dpc532 -D__ns32k__ -D__KPRINTF_ATTRIBUTE__ -Asystem=unix -Asystem=NetBSD -Acpu=ns32k -Amachine=ns32k"
+#undef CPP_SPEC
+#define CPP_SPEC "%{posix:-D_POSIX_SOURCE}"
+
/* Make gcc agree with <machine/ansi.h> */
#undef SIZE_TYPE
"%{!m32:%(cpp_subtarget_spec64)}%{m32:%(cpp_subtarget_spec32)}"
#endif
-/* Restore this from sparc/sparc.h, netbsd.h changes it. */
-#undef CPP_SPEC
-#define CPP_SPEC "%(cpp_cpu) %(cpp_arch) %(cpp_endian) %(cpp_subtarget)"
-
/* Name the port. */
#undef TARGET_NAME
#define TARGET_NAME (DEFAULT_ARCH32_P ? TARGET_NAME32 : TARGET_NAME64)
#undef CPP_PREDEFINES
#define CPP_PREDEFINES "-Dunix -Dsparc -D__NetBSD__ -Asystem=unix -Asystem=NetBSD -Acpu=sparc -Amachine=sparc"
+#undef CPP_SPEC
+#define CPP_SPEC "%(cpp_cpu) %{posix:-D_POSIX_SOURCE}"
+
/* Make gcc agree with <machine/ansi.h> */
#undef SIZE_TYPE
#undef CPP_PREDEFINES
#define CPP_PREDEFINES "-Dunix -Dvax -D__NetBSD__ -Asystem=unix -Asystem=NetBSD -Acpu=vax -Amachine=vax"
+#undef CPP_SPEC
+#define CPP_SPEC "%{posix:-D_POSIX_SOURCE}"
+
/* Make gcc agree with <machine/ansi.h> */
#undef SIZE_TYPE