[llvm-bugs] [Bug 38592] New: TLS Support in -mcmodel=large

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Aug 16 00:56:05 PDT 2018


https://bugs.llvm.org/show_bug.cgi?id=38592

            Bug ID: 38592
           Summary: TLS Support in -mcmodel=large
           Product: tools
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: TableGen
          Assignee: unassignedbugs at nondot.org
          Reporter: umesh.kalappa0 at gmail.com
                CC: llvm-bugs at lists.llvm.org

For the following case the llvm crash i.e 

extern __thread int a ;
int main() {
    a = 2;
}


;error 
#clang -mcmodel=large  -S test.c -v
clang -cc1 version 8.0.0 based upon LLVM 8.0.0svn default target
x86_64-unknown-linux-gnu
ignoring nonexistent directory "/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include
 /home/bft/umesh/clang/build/lib/clang/8.0.0/include
 /usr/include/x86_64-linux-gnu
 /usr/include
End of search list.
fatal error: error in backend: Cannot select: t9: i64 = X86ISD::WrapperRIP
TargetGlobalTLSAddress:i64<i32* @a> 0 [TF=10]
  t8: i64 = TargetGlobalTLSAddress<i32* @a> 0 [TF=10]
In function: main
clang-8: error: clang frontend command failed with exit code 70 (use -v to see
invocation)
clang version 8.0.0 (trunk 339662) (llvm/trunk 339654)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /home/bft/umesh/clang/build/bin
clang-8: note: diagnostic msg: PLEASE submit a bug report to
https://bugs.llvm.org/ and include the crash backtrace, preprocessed source,
and associated run script.
clang-8: note: diagnostic msg:
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-8: note: diagnostic msg: /tmp/test-c04044.c
clang-8: note: diagnostic msg: /tmp/test-c04044.sh
clang-8: note: diagnostic msg:

********************

Please note that the option "-ftls-model=local-exec"  compiles the case ,we are
investigating the cause and any leads/comments from experts ,will help us to
narrow done the issue  asap.

-- 
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/20180816/09d04802/attachment.html>


More information about the llvm-bugs mailing list