https://llvm.org/bugs/show_bug.cgi?id=25384

            Bug ID: 25384
           Summary: Need an MSVC mangling for _Atomic qualifiers
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: unassignedclangb...@nondot.org
          Reporter: r...@google.com
                CC: david.majne...@gmail.com, llvm-bugs@lists.llvm.org
    Classification: Unclassified

Boost contains this code in boost/smart_ptr/detail/sp_counted_base_clang.hpp:

typedef _Atomic( boost::int_least32_t ) atomic_int_least32_t;

inline void atomic_increment( atomic_int_least32_t * pw )
{
    __c11_atomic_fetch_add( pw, 1, __ATOMIC_RELAXED );
}

In theory boost could be changed to use std::atomic, but it'd be nice if C11
_Atomic just worked in clang-cl.

In general, we need a strategy for mangling things that MSVC doesn't know
about, like blocks.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to