[llvm-commits] [patch] fix compilation of lib/System/Unix/ThreadLocal.inc with gcc on threaded "non pthread" unix hosts

Xerxes Rånby xerxes at zafena.se
Fri Jun 26 01:30:14 PDT 2009


The attached patch fixes this compilation error of 
lib/System/Unix/ThreadLocal.inc with gcc on threaded "non pthread" unix 
hosts:

[  3%] Building CXX object 
lib/System/CMakeFiles/LLVMSystem.dir/ThreadLocal.cpp.o
I fil inkluderad från /home/xerxes/llvm/lib/System/ThreadLocal.cpp:73:
/home/xerxes/llvm/lib/System/Unix/ThreadLocal.inc:25:2: varning: inget 
nyradstecken vid slutet av filen
In file included from /home/xerxes/llvm/lib/System/ThreadLocal.cpp:73:
/home/xerxes/llvm/lib/System/Unix/ThreadLocal.inc:23: fel: prototypen 
för "void llvm::sys::ThreadLocalImpl::setInstance(void*)" matchar inte 
någon i klass "llvm::sys::ThreadLocalImpl"
/home/xerxes/llvm/include/llvm/System/ThreadLocal.h:27: fel: kandidat 
är: void llvm::sys::ThreadLocalImpl::setInstance(const void*)
/home/xerxes/llvm/lib/System/Unix/ThreadLocal.inc:24: fel: prototypen 
för "void* llvm::sys::ThreadLocalImpl::getInstance()" matchar inte någon 
i klass "llvm::sys::ThreadLocalImpl"
/home/xerxes/llvm/include/llvm/System/ThreadLocal.h:28: fel: kandidat 
är: const void* llvm::sys::ThreadLocalImpl::getInstance()
/home/xerxes/llvm/lib/System/Unix/ThreadLocal.inc:24: fel: "void* 
llvm::sys::ThreadLocalImpl::getInstance()" kan inte överlagras
/home/xerxes/llvm/include/llvm/System/ThreadLocal.h:28: fel: med "const 
void* llvm::sys::ThreadLocalImpl::getInstance()"
make[2]: *** [lib/System/CMakeFiles/LLVMSystem.dir/ThreadLocal.cpp.o] Fel 1
make[1]: *** [lib/System/CMakeFiles/LLVMSystem.dir/all] Fel 2
make: *** [all] Fel 2

Ciao
Xerxes

-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix.thread.patch
Type: text/x-patch
Size: 683 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20090626/4398ebe6/attachment.bin>


More information about the llvm-commits mailing list