[cfe-dev] [libcxx] atomic header and low-level intrinsics

Al Grant Al.Grant at arm.com
Mon Mar 26 04:44:16 PDT 2012


David Chisnall writes:
> Clang already implements the intrinsics.

Does it implement the GCC intrinsics?  I can't see __atomic_load_n.  And only
two-argument __atomic_load is tested, not GCC's three-argument version.

The two intrinsics sets are not the same, though they are very similar.
So libcxx <atomic> only works with clang and not with GCC.  If libcxx and clang
changed to use and implement the GCC intrinsics, then libcxx would work with GCC.

Al



-- IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium.  Thank you.





More information about the cfe-dev mailing list