This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug inline-asm/33171] GCC outputs invalid assembly when using -O2
- From: "Hans dot Boehm at hp dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Aug 2007 00:53:35 -0000
- Subject: [Bug inline-asm/33171] GCC outputs invalid assembly when using -O2
- References: <bug-33171-5429@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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