The test and set locks in boehm-gc/include/private/gc_locks.h have invalid asm for creating the test and set locks and the current Powerpc GCC compiler generates errors when enabling java in a bootstrap. In addition, GCC 4.4 has added the __sync_lock_test_and_set and __sync_lock_release builtins which abstract these functions, so the asm is not needed for 4.4 and beyond.
Created attachment 18213 [details] Patch to use sync builtins if we can, and fix asm constraints if we have an older compiler
Fixed. 2009-07-17 Michael Meissner <meissner@linux.vnet.ibm.com> PR boehm-gc/40785 * include/private/gc_locks.h (GC_test_and_set): If GCC 4.4, use the __sync_lock_test_and _set and __sync_lock_release builtins on the powerpc. If not GCC 4.4, fix up the constraints so that it builds without error. (GC_clear): Ditto.