------- Comment #7 from scovich at gmail dot com 2007-11-28 01:56 ------- (In reply to comment #2) > I think this is essentially invalid. Note that now we also have the various > __GCC_HAVE_SYNC_COMPARE_AND_SWAP_* macros: > > http://gcc.gnu.org/onlinedocs/cpp/Common-Predefined-Macros.html >
Too bad they aren't defined for any machine I've tried so far... ia64-linux-gnu (4.1.2 Debian) x86_64-unknown-linux-gnu (4.2.0) sparc-sun-solaris2.10 (4.1.1) powerpc64-unknown-linux-gnu (4.1.2 Gentoo) i686-pc-cygwin (4.2.2) All these actually *do* support CAS, and emit perfectly respectable .asm... as long as you don't wrap them in any #ifdef's. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34115