Thanks for the update.<div><br></div><div>I've also been researching Windows-specific EH myself, though I have not yet done any specific work on LLVM / Clang. I assume that to be compatible with VC++ EH we need to use the same language-specific EH handler that is located in the MS runtime library. After the LLVM work done, it should be doable to wire that up in Clang.</div>

<div><br></div><div>For anyone who is interested on the low level details, I found a series of posts on the topic by Nynaeve to be really helpful. You can find it at: <a href="http://www.nynaeve.net/?p=113">http://www.nynaeve.net/?p=113</a></div>

<div><br><br><div class="gmail_quote">On Sat, Aug 4, 2012 at 10:15 PM, Charles Davis <span dir="ltr"><<a href="mailto:cdavis@mymail.mines.edu" target="_blank">cdavis@mymail.mines.edu</a>></span> wrote:<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">+LLVMdev<div><br><div><div class="im"><div>On Aug 4, 2012, at 9:45 AM, Joćo Matos wrote:</div><br><blockquote type="cite">Charles Davis did a lot of work on Win64 SEH support in LLVM, check commits r131652-r132880.<div>

<br></div><div>As I haven't tested it yet, what exactly is broken?<br></div></blockquote></div>It's not finished yet. All the stuff for assembly code that uses Win64 EH is done, but not the code-gen-side stuff (cf. Win64Exception class in CodeGen). I was about to finish it, but then real life happened :). This would have allowed us to use DW2-style EH on Win64, but it still would have been problematic for VC++ EH.</div>

<div><br></div><div>Kai Tietz was interested in finishing it, so I emailed him what I have. I assume he's been working on it--he recently submitted a patch to fix the permissions on .pdata/.xdata sections that I got wrong :). I've CC'd him as well so we can see what he has for us.</div>

<div><br></div><div>Chip</div><div><br><blockquote type="cite"><div class="im"><div><br><div class="gmail_quote">On Sat, Aug 4, 2012 at 2:46 PM, Ruben Van Boxem <span dir="ltr"><<a href="mailto:vanboxem.ruben@gmail.com" target="_blank">vanboxem.ruben@gmail.com</a>></span> wrote:<br>



<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>I would like to inquire as to possibility of this being implemented in Clang/LLVM. As this type of exception handling is much closer to the classic Dwarf model currently used, I hope it won't be too difficult to implement this in Clang? Remember that Win64 EH is broken right now, so any improvement is the right improvement ;-)</div>



</blockquote></div><div><br></div>-- <br>Joćo Matos<br>
</div></div>
_______________________________________________<br>cfe-dev mailing list<br><a href="mailto:cfe-dev@cs.uiuc.edu" target="_blank">cfe-dev@cs.uiuc.edu</a><br><a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>

</blockquote></div><br></div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Joćo Matos<br>
</div>