2009-05-07 Hans Boehm <Hans.Boehm@hp.com> and Mark Sibly
authorhboehm <hboehm>
Thu, 7 May 2009 22:30:57 +0000 (22:30 +0000)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 26 Jul 2011 17:06:44 +0000 (21:06 +0400)
* mach_dep.c: Don't use __builtin_unwind_init for register
state on PowerPC/Darwin.

ChangeLog
mach_dep.c

index f4157a0..4846099 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2009-05-07  Hans Boehm <Hans.Boehm@hp.com> and Mark Sibly
+       * mach_dep.c: Don't use __builtin_unwind_init for register
+       state on PowerPC/Darwin.
+
 2009-04-24  Hans Boehm <Hans.Boehm@hp.com>
        * doc/gcdescr.html: Improve description of object freelist
        structure.
index 1eaa170..b6eaa0a 100644 (file)
@@ -199,10 +199,13 @@ void GC_with_callee_saves_pushed(void (*fn)(ptr_t, void *),
           GC_save_regs_ret_val = GC_save_regs_in_stack();
         }
 #     endif /* register windows. */
-#   elif defined(HAVE_BUILTIN_UNWIND_INIT)
+#   elif defined(HAVE_BUILTIN_UNWIND_INIT) && \
+        !(defined(POWERPC) && defined(DARWIN))
       /* 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                      */