From d67c1cb766f419eeec63f4a40ed1d635faa8e1f7 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Sat, 4 Feb 2006 00:15:08 +0000 Subject: [PATCH] gc_locks.h (GC_test_and_set ): Don't use broken 64-bit version. * include/private/gc_locks.h (GC_test_and_set ): Don't use broken 64-bit version. From-SVN: r110571 --- boehm-gc/ChangeLog | 5 +++++ boehm-gc/include/private/gc_locks.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/boehm-gc/ChangeLog b/boehm-gc/ChangeLog index b1801026d58..61bc00e8521 100644 --- a/boehm-gc/ChangeLog +++ b/boehm-gc/ChangeLog @@ -1,3 +1,8 @@ +2006-02-04 Alan Modra + + * include/private/gc_locks.h (GC_test_and_set ): Don't + use broken 64-bit version. + 2006-01-25 Andreas Tobler * darwin_stop_world.c: Change inline asm instruction to ld as ldz diff --git a/boehm-gc/include/private/gc_locks.h b/boehm-gc/include/private/gc_locks.h index 1faf2d3d209..4e2b641b78b 100644 --- a/boehm-gc/include/private/gc_locks.h +++ b/boehm-gc/include/private/gc_locks.h @@ -139,7 +139,7 @@ # define GC_TEST_AND_SET_DEFINED # endif # if defined(POWERPC) -# if CPP_WORDSZ == 64 +# if 0 /* CPP_WORDSZ == 64 totally broken to use int locks with ldarx */ inline static int GC_test_and_set(volatile unsigned int *addr) { unsigned long oldval; unsigned long temp = 1; /* locked value */ -- 2.30.2