This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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]

[Bug inline-asm/33171] GCC outputs invalid assembly when using -O2



------- 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


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