[LLVMbugs] [Bug 20737] New: clang does not mangle __thread variables like MingW (__emutls_v. prefix is missing)
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sat Aug 23 08:21:11 PDT 2014
http://llvm.org/bugs/show_bug.cgi?id=20737
Bug ID: 20737
Summary: clang does not mangle __thread variables like MingW
(__emutls_v. prefix is missing)
Product: new-bugs
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: new bugs
Assignee: unassignedbugs at nondot.org
Reporter: yaron.keren at gmail.com
CC: llvmbugs at cs.uiuc.edu, rnk at google.com
Classification: Unclassified
echo __thread unsigned a; > tls.cpp & clang -c -target i686-pc-windows-gnu
tls.cpp & nm tls.o
produces '00000000 D _a'
whereas
echo __thread unsigned a; > tls.cpp & gcc -c tls.cpp & nm tls.o
produces '00000000 D ___emutls_v.a'
this prevent the use of <mutex> in clang-compiled modules since it uses two tls
variables, 'once_call' and 'once_callable' which are mangled to
__emutls_v._ZSt11__once_call
__emutls_v._ZSt15__once_callable
whereas the clang-compiled object refers to
_ZSt11__once_call
_ZSt15__once_callable
is the solution just prefixing '__emutls_v.' to __thread variables?
--
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/20140823/14d50256/attachment.html>
More information about the llvm-bugs
mailing list