]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
netbsd.h (TARGET_OS_CPP_BUILTINS): Use NETBSD_OS_CPP_BUILTINS_ELF and NETBSD_OS_CPP_B...
authorJason Thorpe <thorpej@wasabisystems.com>
Wed, 29 May 2002 16:59:06 +0000 (16:59 +0000)
committerJason Thorpe <thorpej@gcc.gnu.org>
Wed, 29 May 2002 16:59:06 +0000 (16:59 +0000)
* config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
NETBSD_OS_CPP_BUILTINS_ELF and NETBSD_OS_CPP_BUILTINS_LP64.
(CPP_SUBTARGET_SPEC): Define.
(SUBTARGET_EXTRA_SPECS): Define.
(CPP_SPEC): Remove.

From-SVN: r54005

gcc/ChangeLog
gcc/config/alpha/netbsd.h

index 26ef675a9a39ffdf24c4b98e211bd8d5ca9cd7e2..afc77be576f86cc635067647457e690e495ed04e 100644 (file)
@@ -1,3 +1,11 @@
+2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
+
+       * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
+       NETBSD_OS_CPP_BUILTINS_ELF and NETBSD_OS_CPP_BUILTINS_LP64. 
+       (CPP_SUBTARGET_SPEC): Define.  
+       (SUBTARGET_EXTRA_SPECS): Define. 
+       (CPP_SPEC): Remove.
+
 2002-05-29  Dale Johannesen  <dalej@apple.com>
             Michael Matz  <matz@kde.org>
             David Edelsohn  <edesohn@gnu.org>
index 3f249eb36b86a94dc1c5b431c843df8db398a9d1..76f5a442e1457450af8a5065a87d9f8db08ff506 100644 (file)
@@ -24,10 +24,8 @@ Boston, MA 02111-1307, USA.  */
 
 #define TARGET_OS_CPP_BUILTINS()               \
     do {                                       \
-       builtin_define ("__NetBSD__");          \
-       builtin_define ("_LP64");               \
-       builtin_assert ("system=unix");         \
-       builtin_assert ("system=NetBSD");       \
+       NETBSD_OS_CPP_BUILTINS_ELF();           \
+       NETBSD_OS_CPP_BUILTINS_LP64();          \
     } while (0)
 
 /* Show that we need a GP when profiling.  */
@@ -35,11 +33,16 @@ Boston, MA 02111-1307, USA.  */
 #define TARGET_PROFILING_NEEDS_GP 1
 
 
-/* Provide a CPP_SPEC appropriate for NetBSD/alpha.  In addition to
-   the standard NetBSD specs, we also handle Alpha FP mode indications.  */
+/* Provide a CPP_SUBTARGET_SPEC appropriate for NetBSD/alpha.  We use
+   this to pull in CPP specs that all NetBSD configurations need.  */
+
+#undef CPP_SUBTARGET_SPEC
+#define CPP_SUBTARGET_SPEC "%(netbsd_cpp_spec)"
+
+#undef SUBTARGET_EXTRA_SPECS
+#define SUBTARGET_EXTRA_SPECS                  \
+  { "netbsd_cpp_spec", NETBSD_CPP_SPEC },
 
-#undef CPP_SPEC
-#define CPP_SPEC "%{posix:-D_POSIX_SOURCE} %(cpp_subtarget)"
 
 /* Provide a LINK_SPEC appropriate for a NetBSD/alpha ELF target.
    This is a copy of LINK_SPEC from <netbsd-elf.h> tweaked for