From: Andreas Tobler Date: Tue, 9 Oct 2007 19:42:40 +0000 (+0000) Subject: gc_priv.h: Remove duplicate code for DARWIN. X-Git-Tag: prereleases/gcc-4.2.3-rc1~206 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=73bd117ddd339d251d81a37ac57448e03e2f647b;p=thirdparty%2Fgcc.git gc_priv.h: Remove duplicate code for DARWIN. 2007-10-09 Andreas Tobler * include/private/gc_priv.h: Remove duplicate code for DARWIN. From-SVN: r129173 --- diff --git a/boehm-gc/ChangeLog b/boehm-gc/ChangeLog index 2e1ebdd81c4d..45d43ea31d65 100644 --- a/boehm-gc/ChangeLog +++ b/boehm-gc/ChangeLog @@ -1,3 +1,7 @@ +2007-10-09 Andreas Tobler + + * include/private/gc_priv.h: Remove duplicate code for DARWIN. + 2007-10-07 Release Manager * GCC 4.2.2 released. diff --git a/boehm-gc/include/private/gc_priv.h b/boehm-gc/include/private/gc_priv.h index 592f2cbc88a3..41c75d3bb62c 100644 --- a/boehm-gc/include/private/gc_priv.h +++ b/boehm-gc/include/private/gc_priv.h @@ -286,53 +286,6 @@ void GC_print_callers GC_PROTO((struct callinfo info[NFRAMES])); #endif -#if defined(DARWIN) -# if defined(POWERPC) -# if CPP_WORDSZ == 32 -# define GC_THREAD_STATE_T ppc_thread_state_t -# define GC_MACH_THREAD_STATE PPC_THREAD_STATE -# define GC_MACH_THREAD_STATE_COUNT PPC_THREAD_STATE_COUNT -# define GC_MACH_HEADER mach_header -# define GC_MACH_SECTION section -# else -# define GC_THREAD_STATE_T ppc_thread_state64_t -# define GC_MACH_THREAD_STATE PPC_THREAD_STATE64 -# define GC_MACH_THREAD_STATE_COUNT PPC_THREAD_STATE64_COUNT -# define GC_MACH_HEADER mach_header_64 -# define GC_MACH_SECTION section_64 -# endif -# elif defined(I386) || defined(X86_64) -# if CPP_WORDSZ == 32 -# define GC_THREAD_STATE_T x86_thread_state32_t -# define GC_MACH_THREAD_STATE x86_THREAD_STATE32 -# define GC_MACH_THREAD_STATE_COUNT x86_THREAD_STATE32_COUNT -# define GC_MACH_HEADER mach_header -# define GC_MACH_SECTION section -# else -# define GC_THREAD_STATE_T x86_thread_state64_t -# define GC_MACH_THREAD_STATE x86_THREAD_STATE64 -# define GC_MACH_THREAD_STATE_COUNT x86_THREAD_STATE64_COUNT -# define GC_MACH_HEADER mach_header_64 -# define GC_MACH_SECTION section_64 -# endif -# else -# error define GC_THREAD_STATE_T -# define GC_MACH_THREAD_STATE MACHINE_THREAD_STATE -# define GC_MACH_THREAD_STATE_COUNT MACHINE_THREAD_STATE_COUNT -# endif -/* Try to work out the right way to access thread state structure members. - The structure has changed its definition in different Darwin versions. - This now defaults to the (older) names without __, thus hopefully, - not breaking any existing Makefile.direct builds. */ -# if defined (HAS_PPC_THREAD_STATE___R0) \ - || defined (HAS_PPC_THREAD_STATE64___R0) \ - || defined (HAS_X86_THREAD_STATE32___EAX) \ - || defined (HAS_X86_THREAD_STATE64___RAX) -# define THREAD_FLD(x) __ ## x -# else -# define THREAD_FLD(x) x -# endif -#endif /*********************************/ /* */ /* OS interface routines */