This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
java broken on powerpc64
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: mckinlay at redhat dot com, java-patches at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Sat, 4 Feb 2006 10:44:31 +1030
- Subject: java broken on powerpc64
This boehm-gc/ change:
2006-01-24 Bryce McKinlay <mckinlay@redhat.com>
Import Boehm GC version 6.6.
results in a complete disaster for libjava testsuite results on
powerpc64. http://gcc.gnu.org/ml/gcc-testresults/2006-02/msg00113.html
I'm committing the following patch under the obvious rule.
* include/private/gc_locks.h (GC_test_and_set <POWERPC>): Don't
use broken 64-bit version.
Bootstrapped, regression tested powerpc64-linux.
Index: boehm-gc/include/private/gc_locks.h
===================================================================
--- boehm-gc/include/private/gc_locks.h (revision 110570)
+++ boehm-gc/include/private/gc_locks.h (working copy)
@@ -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 */
--
Alan Modra
IBM OzLabs - Linux Technology Centre