[llvm-bugs] [Bug 32777] New: emutls.c fails to compile with clang-cl
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Apr 24 16:16:36 PDT 2017
https://bugs.llvm.org/show_bug.cgi?id=32777
Bug ID: 32777
Summary: emutls.c fails to compile with clang-cl
Product: compiler-rt
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: compiler-rt
Assignee: unassignedbugs at nondot.org
Reporter: hans at chromium.org
CC: colsebas at hotmail.com, llvm-bugs at lists.llvm.org,
rnk at google.com
From
http://lab.llvm.org:8011/builders/clang-x64-ninja-win7/builds/3777/steps/build%20stage%202/logs/stdio:
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
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170424/3393adfe/attachment-0001.html>
More information about the llvm-bugs
mailing list