<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 - emutls.c fails to compile with clang-cl"
   href="https://bugs.llvm.org/show_bug.cgi?id=32777">32777</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>emutls.c fails to compile with clang-cl
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>compiler-rt
          </td>
        </tr>

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

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

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

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>compiler-rt
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>hans@chromium.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>colsebas@hotmail.com, llvm-bugs@lists.llvm.org, rnk@google.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>From
<a href="http://lab.llvm.org:8011/builders/clang-x64-ninja-win7/builds/3777/steps/build%20stage%202/logs/stdio">http://lab.llvm.org:8011/builders/clang-x64-ninja-win7/builds/3777/steps/build%20stage%202/logs/stdio</a>:

FAILED: D:\buildslave\clang-x64-ninja-win7\stage1.install\bin\clang-cl.exe  
/nologo -DLLVM_BUILD_GLOBAL_ISEL -DUNICODE -DVISIBILITY_HIDDEN
-D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS
-D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_DEBUG_POINTER_IMPL=""
-D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -D_UNICODE
-D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
-Iprojects\compiler-rt\lib\builtins
-ID:\buildslave\clang-x64-ninja-win7\llvm\projects\compiler-rt\lib\builtins
-Iinclude -ID:\buildslave\clang-x64-ninja-win7\llvm\include /DWIN32 /D_WINDOWS
/Zc:inline /Zc:strictStrings /Oi /Brepro -Wall -W -Wno-unused-parameter
-Wwrite-strings -Wmissing-field-initializers -Wcovered-switch-default
-Wdelete-non-virtual-dtor -Wstring-conversion
-fms-compatibility-version=19.00.24210 /W4 -Wno-unused-parameter /MT /O2 /Ob2  
-UNDEBUG  -fno-lto -std=c11 /showIncludes
/Foprojects\compiler-rt\lib\builtins\CMakeFiles\clang_rt.builtins-x86_64.dir\emutls.c.obj
/Fdprojects\compiler-rt\lib\builtins\CMakeFiles\clang_rt.builtins-x86_64.dir\
-c
D:\buildslave\clang-x64-ninja-win7\llvm\projects\compiler-rt\lib\builtins\emutls.c
clang-cl.exe: warning: unknown argument ignored in clang-cl: '-fno-lto'
[-Wunknown-argument]
clang-cl.exe: warning: unknown argument ignored in clang-cl: '-std=c11'
[-Wunknown-argument]
D:\buildslave\clang-x64-ninja-win7\llvm\projects\compiler-rt\lib\builtins\emutls.c(204,8):
 error: expected identifier
enum { __ATOMIC_ACQUIRE, __ATOMIC_RELEASE };
       ^
<built-in>(9,26):  note: expanded from here
#define __ATOMIC_ACQUIRE 2
                         ^
D:\buildslave\clang-x64-ninja-win7\llvm\projects\compiler-rt\lib\builtins\emutls.c(204,26):
 error: expected identifier
enum { __ATOMIC_ACQUIRE, __ATOMIC_RELEASE };
                         ^
<built-in>(10,26):  note: expanded from here
#define __ATOMIC_RELEASE 3
                         ^
D:\buildslave\clang-x64-ninja-win7\llvm\projects\compiler-rt\lib\builtins\emutls.c(206,27):
 error: definition of builtin function '__atomic_load_n'
static __inline uintptr_t __atomic_load_n(void *ptr, unsigned type) {
                          ^
D:\buildslave\clang-x64-ninja-win7\llvm\projects\compiler-rt\lib\builtins\emutls.c(208,24):
 warning: implicit declaration of function '_load_be_u64' is invalid in C99
[-Wimplicit-function-declaration]
    return (uintptr_t) _load_be_u64(ptr);
                       ^
D:\buildslave\clang-x64-ninja-win7\llvm\projects\compiler-rt\lib\builtins\emutls.c(211,22):
 error: definition of builtin function '__atomic_store_n'
static __inline void __atomic_store_n(void *ptr, uintptr_t val, unsigned type)
{
                     ^
D:\buildslave\clang-x64-ninja-win7\llvm\projects\compiler-rt\lib\builtins\emutls.c(213,5):
 warning: implicit declaration of function '_store_be_u64' is invalid in C99
[-Wimplicit-function-declaration]
    _store_be_u64(ptr, val);
    ^
2 warnings and 4 errors generated.


The file was added in r301089</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>