public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/52190] New: question about atomic intrinsics -- test and documentation vary -- please clarify
@ 2012-02-09 18:47 mib.bugzilla at gmail dot com
  2012-02-09 20:40 ` [Bug c/52190] " amacleod at redhat dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: mib.bugzilla at gmail dot com @ 2012-02-09 18:47 UTC (permalink / raw)
  To: gcc-bugs

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!


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-03-25 19:14 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-09 18:47 [Bug c/52190] New: question about atomic intrinsics -- test and documentation vary -- please clarify mib.bugzilla at gmail dot com
2012-02-09 20:40 ` [Bug c/52190] " amacleod at redhat dot com
2012-02-10 11:14 ` rguenth at gcc dot gnu.org
2012-02-10 18:37 ` amacleod at redhat dot com
2012-02-12 14:03 ` redi at gcc dot gnu.org
2012-02-13 15:37 ` amacleod at redhat dot com
2014-03-25 19:14 ` mpolacek at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).