<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - TLS Support in -mcmodel=large"
href="https://bugs.llvm.org/show_bug.cgi?id=38592">38592</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>TLS Support in -mcmodel=large
</td>
</tr>
<tr>
<th>Product</th>
<td>tools
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>TableGen
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>umesh.kalappa0@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>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
<a href="https://bugs.llvm.org/">https://bugs.llvm.org/</a> 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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>