After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 668906 - __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 is not defined
__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 is not defined
Status: RESOLVED DUPLICATE of bug 682818
Product: glib
Classification: Platform
Component: general
2.31.x
Other Mac OS
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2012-01-28 12:48 UTC by Matej Knopp
Modified: 2013-02-05 02:45 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Matej Knopp 2012-01-28 12:48:53 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.
Comment 1 Allison Karlitskaya (desrt) 2012-01-28 17:23:23 UTC
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.
Comment 2 Matthias Clasen 2013-02-05 02:45:34 UTC

*** This bug has been marked as a duplicate of bug 682818 ***