[LLVMbugs] [Bug 3654] New: tls is broken with -fast

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Mon Feb 23 13:28:57 PST 2009


           Summary: tls is broken with -fast
           Product: tools
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: llc
        AssignedTo: rafael.espindola at gmail.com
        ReportedBy: rafael.espindola at gmail.com
                CC: llvmbugs at cs.uiuc.edu, nlewycky at google.com

If the program

@v = thread_local global i32 0
define i32* @f() {
        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.

More information about the llvm-bugs mailing list