<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:protze@itc.rwth-aachen.de" title="Joachim Protze <protze@itc.rwth-aachen.de>"> <span class="fn">Joachim Protze</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED - TEST 'libomp :: ompt/synchronization/lock.c' FAILED on 32-bit x86"
   href="https://bugs.llvm.org/show_bug.cgi?id=40531">bug 40531</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;">Resolution</td>
           <td>FIXED
           </td>
           <td>---
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>RESOLVED
           </td>
           <td>REOPENED
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED - TEST 'libomp :: ompt/synchronization/lock.c' FAILED on 32-bit x86"
   href="https://bugs.llvm.org/show_bug.cgi?id=40531#c7">Comment # 7</a>
              on <a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED - TEST 'libomp :: ompt/synchronization/lock.c' FAILED on 32-bit x86"
   href="https://bugs.llvm.org/show_bug.cgi?id=40531">bug 40531</a>
              from <span class="vcard"><a class="email" href="mailto:protze@itc.rwth-aachen.de" title="Joachim Protze <protze@itc.rwth-aachen.de>"> <span class="fn">Joachim Protze</span></a>
</span></b>
        <pre>gcc and clang seem to have a different idea of what should be the result on 32
bit arch for:

`int a;
(uint64_t)&a;`

I still can reproduce the issue when using gcc as test compiler after compiling
the runtime with clang or vice versa.

I must admit, that I do not fully understand the type conversion rule applied
here, but from my understanding gcc and clang disagree in the signedness of
void*?


For a compatible result the following cast should help:

(ompt_wait_id_t)(uintptr_t)&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>