On 7 March 2010 13:23, Duncan Sands <span dir="ltr"><<a href="mailto:baldrick@free.fr">baldrick@free.fr</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi James,<br>
<div><div></div><div class="h5"><br>
> lli --help says:<br>
><br>
> "-enable-eh - Emit DWARF exception handling (default if target supports)"<br>
><br>
> But in fact the default on x86-64 linux seems to be disabled, even<br>
> though exception handling is supported both for lli and when I use the<br>
> JIT as a library. Is this a bug? I can't find where<br>
> llvm::DwarfExceptionHandling is being conditionally set by the JIT based<br>
> on exception handling support.<br>
<br>
</div></div>I'm not sure what you are asking.  Are you saying that eh doesn't work with<br>
the JIT on x86-64?  Or are you saying that it does work, and wondering why<br>
because this option seems to be off?<br></blockquote><div> </div><div>Hi,<br><br>Sorry if I wasn't very clear. Neither of those things. Exception handling does work and the -enable-eh option does switch it on for x86-64, which is the platform I'm targetting.<br>
<br>My problem is that -enable-eh is not on by default on x86-64 despite 'lli --help' suggesting "(default if target supports)" that it should be.<br><br>I think this disagreement between what 'lli --help' says (-enable-eh default to on for targets that support exception handling) and the actual behaviour (not on by default on x86-64) is a bug.<br>
<br>It's obviously not a serious problem but it does prevent my compiler using stock lli as I've had to patch it to set llvm::DwarfExceptionHandling = true on startup.<br><br>-- James<br> <br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

<br>
Ciao,<br>
<font color="#888888"><br>
Duncan.<br>
</font><div><div></div><div class="h5">_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">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>
<br>
</div></div></blockquote></div><br>