GNOME Bugzilla – Bug 668906
__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 is not defined
Last modified: 2013-02-05 02:45:34 UTC
Clang / llvm-gcc does not define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4, this results in really bad performance as all atomic operations are locked by a mutex.
Note http://llvm.org/bugs/show_bug.cgi?id=11174 Meanwhile, we could probably add an explicit check for clang and just assume that we have the atomic ops in that case.
*** This bug has been marked as a duplicate of bug 682818 ***