I use LLVM 2.9. By the way, I have another question. Is landingpad instruction is already implemented in JIT or I should use the old approach with llvm.eh instrinsics? Thanks.<br><br><div class="gmail_quote">2011/11/9 Eric Christopher <span dir="ltr"><<a href="mailto:echristo@apple.com">echristo@apple.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div style="word-wrap:break-word">Which version of LLVM? At any rate I don't recall TLS working for the JIT. It may take some work.<div>
<br></div><div>-eric<br><div><br></div><div><br><div><div><div class="h5"><div>On Nov 9, 2011, at 4:46 AM, Semion Prihodko wrote:</div><br></div></div><blockquote type="cite"><div><div class="h5">OK, that's my fault. I'm running jitted code on linux x86.<br>
<br><div class="gmail_quote">2011/11/9 Duncan Sands <span dir="ltr"><<a href="mailto:baldrick@free.fr" target="_blank">baldrick@free.fr</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Hi Semion,<div><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
In my case the LLVM is built with assertions, but this doesn't help. From your<br>
answer I conclude that thread-local globals are fully implemented in x86 JIT.<br>
</blockquote>
<br></div>
you didn't mention the JIT.  You didn't give any details at all!  That's why I<br>
was only able to make a generic suggestion.  Don't read too much into it.<br>
<br>
Ciao, Duncan.<br>
<br>
 So<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
this is strange...<br>
<br>
2011/11/9 Duncan Sands <<a href="mailto:baldrick@free.fr" target="_blank">baldrick@free.fr</a> <mailto:<a href="mailto:baldrick@free.fr" target="_blank">baldrick@free.fr</a>>><div><br>
<br>
    Hi Semion,<br>
<br>
     > Really strange situation: when I modify a thread-local GlobalVariable I get a<br>
     > segfault. It seems to be a bug, doesn't it? Can u suggest me some solution?<br>
<br>
    build LLVM with assertions enabled.  Then you may well get an assertion failure<br>
    with a helpful error message rather than an obscure crash.<br>
<br>
    Ciao, Duncan.<br>
    ______________________________<u></u>_________________<br>
    LLVM Developers mailing list<br></div>
    <a href="mailto:LLVMdev@cs.uiuc.edu" target="_blank">LLVMdev@cs.uiuc.edu</a> <mailto:<a href="mailto:LLVMdev@cs.uiuc.edu" target="_blank">LLVMdev@cs.uiuc.edu</a>> <a href="http://llvm.cs.uiuc.edu/" target="_blank">http://llvm.cs.uiuc.edu</a><br>


    <a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/<u></u>mailman/listinfo/llvmdev</a><br>
<br>
<br>
</blockquote>
<br>
</blockquote></div><br>
_______________________________________________<br>LLVM Developers mailing list<br></div></div><a href="mailto:LLVMdev@cs.uiuc.edu" target="_blank">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br></blockquote></div><br></div></div></div>
</blockquote></div><br>