-
Notifications
You must be signed in to change notification settings - Fork 13.6k
#define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_ #11546
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
GCC rather helpfully defines these macros when it is capable of supporting atomic intrinsics for a particular word size. For example:
clang doesn't define these macros and doesn't seem to define anything equivalent either. That prevents having an #ifdef around code that might either use these operations or elect to implement them with a mutex. |
This is actually an ABI issue, and should be raised in priority. See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42734 |
I met the same problem when building glib. Since lack of __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4, it caused the glib configuration failed. |
Fixed in r178816 for x86. |
mentioned in issue llvm/llvm-bugzilla-archive#24345 |
The text was updated successfully, but these errors were encountered: