------- Comment #4 from Hans dot Boehm at hp dot com 2007-08-29 00:53 ------- I'll make the %X1 change upstream. Are there similar issues with some of the other routines?
(See http://bdwgc.cvs.sourceforge.net/bdwgc/bdwgc/libatomic_ops-1.2/src/atomic_ops/sysdeps/gcc/powerpc.h?revision=1.3&view=markup ) Based on Book 2, section 1.4 of the architecture manual, I believe aligned word access are always atomic on PowerPC. The general wisdom among the experts I've talked to seems to be that a conditional branch followed by isync is cheaper than an lwsync, and sufficient for an acquire load. -- Hans dot Boehm at hp dot com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |Hans dot Boehm at hp dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33171