<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - __GCC_ATOMIC_SHORT_LOCK_FREE defined incorrectly for WebAssembly"
   href="https://bugs.llvm.org/show_bug.cgi?id=33146">33146</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>__GCC_ATOMIC_SHORT_LOCK_FREE defined incorrectly for WebAssembly
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>other
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>-New Bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>dan433584@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>dschuff@google.com, jgravelle@google.com, llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>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: <a href="https://reviews.llvm.org/D31516">https://reviews.llvm.org/D31516</a>

The WebAssembly memory model proposal is here:
<a href="https://github.com/WebAssembly/threads">https://github.com/WebAssembly/threads</a></pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>