This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]