http://llvm.org/bugs/show_bug.cgi?id=3654
Summary: tls is broken with -fast
Product: tools
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: llc
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
If the program
@v = thread_local global i32 0
define i32* @f() {
entry:
ret i32* @v
}
Is compiled with llc -relocation-model=pic, a valid instruction sequence is
produced. If it is compiled with llc -relocation-model=pic -fast, the call to
__tls_get_addr is missing.
Running in gdb shows that X86TargetLowering::LowerGlobalTLSAddress is not
called when using -fast.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs