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

            Bug ID: 33146
           Summary: __GCC_ATOMIC_SHORT_LOCK_FREE defined incorrectly for
                    WebAssembly
           Product: clang
           Version: unspecified
          Hardware: Other
                OS: other
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangb...@nondot.org
          Reporter: dan433...@gmail.com
                CC: dsch...@google.com, jgrave...@google.com,
                    llvm-bugs@lists.llvm.org

8-bit and 16-bit atomics in the proposed WebAssembly memory model are not
guaranteed to be lock-free, even though 32-bit atomics are.

clang currently defines __GCC_ATOMIC_SHORT_LOCK_FREE and others to be 2, which
is incorrect; with current WebAssembly shared memory proposal, they should be
1.

A patch to implement this in clang is here: https://reviews.llvm.org/D31516

The WebAssembly memory model proposal is here:
https://github.com/WebAssembly/threads

-- 
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