[PATCH] D26376: Undef stdatomic.h macro definitions that are defining functions provided in libc++ <atomic>

Richard Smith via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 16 10:08:20 PST 2016


On 16 Nov 2016 10:04 am, "Marshall Clow" <mclow.lists at gmail.com> wrote:

mclow.lists added a comment.

Ok - looking just at `kill_dependency`, this was added to the C standard in
C11. It's required to be a macro.
`atomic_is_lock_free` appears to be a function, as does `atomic_load`.
Haven't checked the rest.


That's a bug in C11; these are nearly all required to be macros. See
http://www.open-std.org/jtc1/sc22/wg14/www/docs/summary.htm#dr_419

I see that Bionic (sometimes) defines `atomic_is_lock_free` as a macro.


https://reviews.llvm.org/D26376
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20161116/1763dd24/attachment.html>


More information about the cfe-commits mailing list