<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:yaron.keren@gmail.com" title="Yaron Keren <yaron.keren@gmail.com>"> <span class="fn">Yaron Keren</span></a>
</span> changed
              <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED WONTFIX - clang does not support GCC's TLS emulation"
   href="http://llvm.org/bugs/show_bug.cgi?id=20737">bug 20737</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>WONTFIX
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED WONTFIX - clang does not support GCC's TLS emulation"
   href="http://llvm.org/bugs/show_bug.cgi?id=20737#c2">Comment # 2</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED WONTFIX - clang does not support GCC's TLS emulation"
   href="http://llvm.org/bugs/show_bug.cgi?id=20737">bug 20737</a>
              from <span class="vcard"><a class="email" href="mailto:yaron.keren@gmail.com" title="Yaron Keren <yaron.keren@gmail.com>"> <span class="fn">Yaron Keren</span></a>
</span></b>
        <pre>Hi,

I thought it won't be so easy... anyhow,

 __emutls_v._ZSt11__once_call
 __emutls_v._ZSt15__once_callable

appear in libstdc++6.dll from mingw-builds 4.8.3 and 4.9.1, 32 bit, posix
threads, dwarf eh which are very current releases:

<a href="http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/mingw-builds/4.8.3/threads-posix/dwarf/">http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/mingw-builds/4.8.3/threads-posix/dwarf/</a>

<a href="http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/mingw-builds/4.9.1/threads-posix/dwarf/">http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/mingw-builds/4.9.1/threads-posix/dwarf/</a>

The win32-threads version does not have these in libstdc++6.dll, but for a bad
reason - it does not have C++11 threading and atomics! the code generated by

<a href="http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/mingw-builds/4.9.1/threads-win32/dwarf/">http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/mingw-builds/4.9.1/threads-win32/dwarf/</a>

the example produces identical code for both posix and win32 version and using
emutls:
...
    movl    $___emutls_v.a, (%esp)
    call    ___emutls_get_address
    movl    $10, (%eax)
...

Do you know of a mingw distribution not using emutls and compatible with clang?

Thanks for looking into this.</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>