[LLVMdev] Support for "foreign" Visual Studio 64 bits C++ exceptions?

Sebastian Redl sebastian.redl at getdesigned.at
Fri Apr 13 02:52:01 PDT 2012


On 12.04.2012 23:02, Jérôme Couture-Gagnon wrote:
> Hi,
>
> We are currently porting our application to Windows 64 bits (amd64), 
> and we are getting regressions from 32 bits relatively to LLVM 3.0's 
> ability to get traversed by "foreign" Visual Studio C++ exceptions. 
> That is, there is a crash when C++ exceptions which are thrown from 
> Visual Studio code, are unwinding through LLVM code before being 
> eventually catch by other Visual Studio code (more details below).
>
> I am not an expert on the subject of exceptions, however I was not 
> able to find clear answers about this specific issue. Should it be 
> supported,
No. Not sure if the current Windows builds use SJLJ or Dwarf2 exception 
handling, but either way it is simply incompatible with SEH stack 
unwinding. Apparently LLVM doesn't generate even the minimal support for 
SEH unwinding through its code to work.

> and if not, is there is any planned effort from the LLVM team to work 
> on this?
Not AFAIK, but I'm pretty sure any and all work on 64-bit SEH support 
would be appreciated. Currently, there is some work in Clang ongoing to 
emulate the Microsoft ABI, and eventually, SEH support will be required 
for completeness.

Sebastian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120413/cfa0b1c0/attachment.html>


More information about the llvm-dev mailing list