diff options
| author | thorpej <thorpej@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-05-04 01:31:29 +0000 |
|---|---|---|
| committer | thorpej <thorpej@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-05-04 01:31:29 +0000 |
| commit | 2c2026d259e6aab8b5c449107f324150983e9571 (patch) | |
| tree | 95e3d41cf1ccb576bdcbf9dd44ba5e55c254f79a | |
| parent | 5da2bd314bb12aba9ccb09323882faa06ddc68f9 (diff) | |
| download | ppe42-gcc-2c2026d259e6aab8b5c449107f324150983e9571.tar.gz ppe42-gcc-2c2026d259e6aab8b5c449107f324150983e9571.zip | |
* 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).
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@53140 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/ChangeLog | 8 | ||||
| -rw-r--r-- | gcc/config/i386/netbsd64.h | 18 |
2 files changed, 26 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ee8baf7d247..902c88b8cce 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,11 @@ +2002-05-03 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-03 David S. Miller <davem@redhat.com> * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete. diff --git a/gcc/config/i386/netbsd64.h b/gcc/config/i386/netbsd64.h index 813422a59cf..26a3f42c861 100644 --- a/gcc/config/i386/netbsd64.h +++ b/gcc/config/i386/netbsd64.h @@ -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 |

