netbsd.h (CPP_SPEC): Remove.
authorJason Thorpe <thorpej@wasabisystems.com>
Thu, 9 May 2002 03:53:58 +0000 (03:53 +0000)
committerJason Thorpe <thorpej@gcc.gnu.org>
Thu, 9 May 2002 03:53:58 +0000 (03:53 +0000)
* 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

gcc/ChangeLog
gcc/config/i386/netbsd-elf.h
gcc/config/i386/netbsd.h
gcc/config/netbsd.h
gcc/config/ns32k/netbsd.h
gcc/config/sparc/netbsd-elf.h
gcc/config/sparc/netbsd.h
gcc/config/vax/netbsd.h

index c0b86cc4a8d5a829f86e82f2fabc2b7c34b2bddd..e1f507c0efc2fc42051aa33a25688d9c15945c8a 100644 (file)
@@ -1,3 +1,13 @@
+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.
index e6b6de4f8b43015658fc70f72b53f0fe5f789085..f3992e8ae37eb66fc282b7058ce7767bc6724de1 100644 (file)
@@ -43,6 +43,13 @@ Boston, MA 02111-1307, USA.  */
 #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
index 765e6793d085391197887056e495e63c7c5faf8d..400cb0f432f68dff8c0da42a693ee4fed468f1f7 100644 (file)
@@ -8,6 +8,10 @@
 #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"
index 227942cd4900f0faa3c5d0dfcee07945ba9e8944..920c0a8c6d22cae68d6b0f40979dea9b4a371b77 100644 (file)
 #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
index 4050700dd588f718815f1119ff9328b99243836d..a5ac5b56162e5f2487c96a99a6e6db0b193d2bd6 100644 (file)
@@ -73,6 +73,9 @@ Boston, MA 02111-1307, USA.
 #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
index 1bf4356b5cac978877dde3b83db82d15150d2e9f..43b3e5063efc900259ac4ac3129a870b05f19ea3 100644 (file)
@@ -295,10 +295,6 @@ Boston, MA 02111-1307, USA.  */
   "%{!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)
index b7b44409a55c6ca041384ad7b3a6f2fe4209af55..13d5a630338608975d10318f4760526174f10a43 100644 (file)
@@ -3,6 +3,9 @@
 #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
index a75ae09787a18e442304221d5fb8c6ef13d702bd..005a86775272f39193b5e8ffaebfe7f018c3ed42 100644 (file)
@@ -1,6 +1,9 @@
 #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