From 62123bbf952913f891bb026148ea0375674dd22b Mon Sep 17 00:00:00 2001 From: amodra Date: Sat, 4 Feb 2006 00:15:08 +0000 Subject: [PATCH] * include/private/gc_locks.h (GC_test_and_set ): Don't use broken 64-bit version. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@110571 138bc75d-0d04-0410-961f-82ee72b054a4 --- ChangeLog | 5 +++++ include/private/gc_locks.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index b1801026..61bc00e8 100644 --- a/ChangeLog +++ b/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/include/private/gc_locks.h b/include/private/gc_locks.h index 1faf2d3d..4e2b641b 100644 --- a/include/private/gc_locks.h +++ b/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.40.0