<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:mgorny@gentoo.org" title="Michał Górny <mgorny@gentoo.org>"> <span class="fn">Michał Górny</span></a>
</span> changed
              <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - Inconsistent value of ATOMIC_LLONG_LOCK_FREE vs __atomic_always_lock_free(sizeof(long long), 0) on 32-bit x86"
   href="https://llvm.org/bugs/show_bug.cgi?id=30581">bug 30581</a>
        <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>NEW
           </td>
           <td>RESOLVED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>---
           </td>
           <td>FIXED
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - Inconsistent value of ATOMIC_LLONG_LOCK_FREE vs __atomic_always_lock_free(sizeof(long long), 0) on 32-bit x86"
   href="https://llvm.org/bugs/show_bug.cgi?id=30581#c5">Comment # 5</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - Inconsistent value of ATOMIC_LLONG_LOCK_FREE vs __atomic_always_lock_free(sizeof(long long), 0) on 32-bit x86"
   href="https://llvm.org/bugs/show_bug.cgi?id=30581">bug 30581</a>
              from <span class="vcard"><a class="email" href="mailto:mgorny@gentoo.org" title="Michał Górny <mgorny@gentoo.org>"> <span class="fn">Michał Górny</span></a>
</span></b>
        <pre>commit 266cb72185242313c85a9f33dc33944da8b2b403
Author: Michal Gorny <<a href="mailto:mgorny@gentoo.org">mgorny@gentoo.org</a>>
Date:   Mon Jan 9 21:54:20 2017

    [Frontend] Correct values of ATOMIC_*_LOCK_FREE to match builtin

    Correct the logic used to set ATOMIC_*_LOCK_FREE preprocessor macros not
    to rely on the ABI alignment of types. Instead, just assume all those
    types are aligned correctly by default since clang uses safe alignment
    for _Atomic types even if the underlying types are aligned to a lower
    boundary by default.

    For example, the 'long long' and 'double' types on x86 are aligned to
    32-bit boundary by default. However, '_Atomic long long' and '_Atomic
    double' are aligned to 64-bit boundary, therefore satisfying
    the requirements of lock-free atomic operations.

    This fixes PR #19355 by correcting the value of
    __GCC_ATOMIC_LLONG_LOCK_FREE on x86, and therefore also fixing
    the assumption made in libc++ tests. This also fixes PR #30581 by
    applying a consistent logic between the functions used to implement
    both interfaces.

    Differential Revision: <a href="https://reviews.llvm.org/D28213">https://reviews.llvm.org/D28213</a>

    git-svn-id: <a href="https://llvm.org/svn/llvm-project/cfe/trunk@291477">https://llvm.org/svn/llvm-project/cfe/trunk@291477</a>
91177308-0d34-0410-b5e6-96231b3b80d8</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>