From 5a9b4fd3ca1682551d83118dcbfbb044148bfd49 Mon Sep 17 00:00:00 2001 From: tromey Date: Tue, 16 Jan 2007 19:38:59 +0000 Subject: [PATCH] 2007-01-16 Petr Salinger * include/private/gcconfig.h: Handle amd64/x86-64 cpu under GNU/kFreeBSD. * os_dep.c: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@120831 138bc75d-0d04-0410-961f-82ee72b054a4 --- ChangeLog | 6 ++++++ include/private/gcconfig.h | 4 ++++ os_dep.c | 4 ++-- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 1c8ce532..b637a37d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-01-16 Petr Salinger + + * include/private/gcconfig.h: Handle amd64/x86-64 cpu under + GNU/kFreeBSD. + * os_dep.c: Likewise. + 2007-01-15 Andreas Tobler * os_dep.c (defined(MPROTECT_VDB) && defined(DARWIN)): Adjust mail diff --git a/include/private/gcconfig.h b/include/private/gcconfig.h index ef222323..3e5af3a7 100644 --- a/include/private/gcconfig.h +++ b/include/private/gcconfig.h @@ -329,6 +329,10 @@ # define I386 # define mach_type_known # endif +# if defined(FREEBSD) && defined(__x86_64__) +# define X86_64 +# define mach_type_known +# endif # if defined(__NetBSD__) && (defined(i386) || defined(__i386__)) # define I386 # define mach_type_known diff --git a/os_dep.c b/os_dep.c index de7cdd57..540dcba5 100644 --- a/os_dep.c +++ b/os_dep.c @@ -84,7 +84,7 @@ # define NEED_FIND_LIMIT # endif -#if defined(FREEBSD) && (defined(I386) || defined(powerpc) || defined(__powerpc__)) +#if defined(FREEBSD) && (defined(I386) || defined(X86_64) || defined(powerpc) || defined(__powerpc__)) # include # if !defined(PCR) # define NEED_FIND_LIMIT @@ -1392,7 +1392,7 @@ int * etext_addr; } # endif -# if defined(FREEBSD) && (defined(I386) || defined(powerpc) || defined(__powerpc__)) && !defined(PCR) +# if defined(FREEBSD) && (defined(I386) || defined(X86_64) || defined(powerpc) || defined(__powerpc__)) && !defined(PCR) /* Its unclear whether this should be identical to the above, or */ /* whether it should apply to non-X86 architectures. */ /* For now we don't assume that there is always an empty page after */ -- 2.40.0