http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52190
Bug #: 52190 Summary: question about atomic intrinsics -- test and documentation vary -- please clarify Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassig...@gcc.gnu.org ReportedBy: mib.bugzi...@gmail.com This url http://gcc.gnu.org/onlinedocs/gcc/_005f_005fatomic-Builtins.html shows these 2 intrinsics declared like this: Built-in Function: bool __atomic_always_lock_free (size_t size) Built-in Function: bool __atomic_is_lock_free (size_t size) But there are test cases for these 2 functions that have 2nd argument (memmodel) e.g. atomic-lockfree.c lines 23 and 24 r1 = __atomic_always_lock_free (sizeof(char), 0); r2 = __atomic_is_lock_free (sizeof(char), 0); Please clarify, thanks!