[LLVMbugs] [Bug 19844] New: We should probably support threadLocalMode in aliases
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri May 23 10:02:02 PDT 2014
http://llvm.org/bugs/show_bug.cgi?id=19844
Bug ID: 19844
Summary: We should probably support threadLocalMode in aliases
Product: libraries
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: Core LLVM classes
Assignee: unassignedbugs at nondot.org
Reporter: rafael.espindola at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
given
------------------------------------
__thread int a = 42;
extern __thread int b __attribute__((tls_model("local-dynamic"), alias("a")));
int *f(void) {
return &a;
}
int *g(void) {
return &b;
}
-----------------------------------
gcc will produce
leaq a at tlsgd(%rip), %rdi
leaq b at tlsld(%rip), %rdi
Given the current class layout this will probably mean moving threadLocalMode
to GlobalValue and asserting it is NotThreadLocal for functions.
--
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/20140523/7777324b/attachment.html>
More information about the llvm-bugs
mailing list