]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
netbsd64.h (CPP_LP64_SPEC): Define.
authorJason Thorpe <thorpej@wasabisystems.com>
Thu, 30 May 2002 04:00:33 +0000 (04:00 +0000)
committerJason Thorpe <thorpej@gcc.gnu.org>
Thu, 30 May 2002 04:00:33 +0000 (04:00 +0000)
* config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
(CPP_SUBTARGET_SPEC): Define.
(SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
cpp_subtarget specs.
(CPP_SPEC): Redefine to include %(cpp_subtarget).

From-SVN: r54041

gcc/ChangeLog
gcc/config/i386/netbsd64.h

index 0b22dbae376620d59350ec0b2ec79e5c819ec5f1..39ab01b036bc8c59d285337435aa8e702908dca2 100644 (file)
@@ -1,3 +1,11 @@
+2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
+
+       * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
+       (CPP_SUBTARGET_SPEC): Define.
+       (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
+       cpp_subtarget specs. 
+       (CPP_SPEC): Redefine to include %(cpp_subtarget).               
+
 2002-05-29  Hans-Peter Nilsson  <hp@axis.com>
 
        * doc/md.texi (Patterns): Note pattern condition pitfall
index 74862af9d6ea1a8e19a90a69cf8427e0e61fbbc9..051f33b81f684ab1d011fb71591d13361ab49d9e 100644 (file)
@@ -48,6 +48,24 @@ Boston, MA 02111-1307, USA.  */
   "-D__NetBSD__ -D__ELF__ -Asystem=unix -Asystem=NetBSD"
 
 
+/* Provide some extra CPP specs needed by NetBSD/x86_64.  */
+#define CPP_LP64_SPEC "%{!m32:-D_LP64}"
+
+#define CPP_SUBTARGET_SPEC "%(cpp_lp64)"
+
+#undef SUBTARGET_EXTRA_SPECS
+#define SUBTARGET_EXTRA_SPECS                                          \
+  { "cpp_lp64", CPP_LP64_SPEC },                                       \
+  { "cpp_subtarget", CPP_SUBTARGET_SPEC },
+
+
+/* Provide a CPP_SPEC appropriate for NetBSD.  Currently we deal with
+   our subtarget specs and the GCC option `-posix'.  */
+
+#undef CPP_SPEC
+#define CPP_SPEC "%(cpp_cpu) %(cpp_subtarget) %{posix:-D_POSIX_SOURCE}"
+
+
 /* Output assembler code to FILE to call the profiler.  */
 
 #undef FUNCTION_PROFILER