[LLVMbugs] [Bug 18986] New: extern thread_local int var -- compilation fails on access of var

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Feb 27 03:55:07 PST 2014


http://llvm.org/bugs/show_bug.cgi?id=18986

            Bug ID: 18986
           Summary: extern thread_local int var  -- compilation fails on
                    access of var
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: LLVM Codegen
          Assignee: unassignedclangbugs at nondot.org
          Reporter: ariane at stack.nl
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 12158
  --> http://llvm.org/bugs/attachment.cgi?id=12158&action=edit
Test case  (compilation only)

Compiling the included file with clang fails, while attempting to resolve a TLS
address lookup.

Affected platform:  amd64;  Note that i386 is not affected.
Tested on MacOSX.


Compiler output:

fatal error: error in backend: Cannot select: 0x7fafec81a310: i64 =
X86ISD::WrapperRIP 0x7fafec819f10 [ORD=2] [ID=7]
  0x7fafec819f10: i64 = TargetGlobalTLSAddress<i32* @v> 0 [TF=10] [ORD=2]
[ID=5]
In function: _Z3foov


Compiler invocation:

"/Users/ariane/programming/ilias_os/compiler/build/install/bin/clang-3.5" -cc1
-triple amd64 -emit-obj -disable-free -disable-llvm-verifier -main-file-name
cstdlib.cc -mrelocation-model static -mdisable-fp-elim -fmath-errno
-masm-verbose -mconstructor-aliases -munwind-tables -mcode-model large
-target-cpu x86-64 -disable-red-zone -nostdsysteminc -nobuiltininc
-sys-header-deps -D "_KERNEL=1" -O3 -Wno-tautological-compare
-Wno-c++1y-extensions -std=c++11 -fdeprecated-macro -ferror-limit 19
-fmessage-length 130 -ftls-model=initial-exec -ffreestanding -mstackrealign
-fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option
-fcolor-diagnostics -vectorize-loops -vectorize-slp -x c++ -o test.o test.cc


Notes:
compiler invocation exits with status code 70.  Assuming use of sysexits.h,
this is EX_SOFTWARE.

-- 
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/20140227/fffe0fd4/attachment.html>


More information about the llvm-bugs mailing list