This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/52190] New: question about atomic intrinsics -- test and documentation vary -- please clarify
- From: "mib.bugzilla at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 09 Feb 2012 18:46:47 +0000
- Subject: [Bug c/52190] New: question about atomic intrinsics -- test and documentation vary -- please clarify
- Auto-submitted: auto-generated
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: unassigned@gcc.gnu.org
ReportedBy: mib.bugzilla@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!