From 2741d176b39fb3418d6186b82ca792098ee6eb1c Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Tue, 17 Apr 2012 07:52:08 +0400 Subject: Minor code refactoring regarding HAVE_BUILTIN_UNWIND_INIT * include/private/gcconfig.h (HAVE_BUILTIN_UNWIND_INIT): Do not define for Darwin/ppc and RTEMS. * mach_dep.c (GC_with_callee_saves_pushed): Remove target-specific checks for Darwin/ppc and RTEMS as HAVE_BUILTIN_UNWIND_INIT is not defined in that case. --- mach_dep.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'mach_dep.c') diff --git a/mach_dep.c b/mach_dep.c index cf842fcc..fc7dd8cf 100644 --- a/mach_dep.c +++ b/mach_dep.c @@ -266,14 +266,10 @@ GC_INNER void GC_with_callee_saves_pushed(void (*fn)(ptr_t, void *), /* subsumed by the getcontext() call. */ GC_save_regs_ret_val = GC_save_regs_in_stack(); # endif /* register windows. */ -# elif defined(HAVE_BUILTIN_UNWIND_INIT) \ - && !(defined(POWERPC) && defined(DARWIN)) \ - && !(defined(I386) && defined(RTEMS)) +# elif defined(HAVE_BUILTIN_UNWIND_INIT) /* This was suggested by Richard Henderson as the way to */ /* force callee-save registers and register windows onto */ /* the stack. */ - /* Mark Sibly points out that this doesn't seem to work */ - /* on MacOS 10.3.9/PowerPC. */ __builtin_unwind_init(); # else /* !HAVE_BUILTIN_UNWIND_INIT && !UNIX_LIKE */ /* && !HAVE_PUSH_REGS */ -- cgit v1.2.1