gc_locks.h (GC_test_and_set <POWERPC>): Don't use broken 64-bit version.

* include/private/gc_locks.h (GC_test_and_set <POWERPC>): Don't
	use broken 64-bit version.

From-SVN: r110571
This commit is contained in:
Alan Modra 2006-02-04 00:15:08 +00:00 committed by Alan Modra
parent 510a8dd51d
commit d67c1cb766
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2006-02-04 Alan Modra <amodra@bigpond.net.au>
* include/private/gc_locks.h (GC_test_and_set <POWERPC>): Don't
use broken 64-bit version.
2006-01-25 Andreas Tobler <a.tobler@schweiz.ch>
* darwin_stop_world.c: Change inline asm instruction to ld as ldz

View File

@ -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 */