Win64 exception handling

kink via digitalmars-d-ldc digitalmars-d-ldc at puremagic.com
Tue Mar 24 08:55:37 PDT 2015


Also see 
https://github.com/ldc-developers/ldc/issues/758#issuecomment-76863220 
(I've used LLVM master, i.e., 3.7 at the time). It appears as if 
the broken EH accounts for nearly all Phobos failures on Win64 
and seriously corrupts the stack.

I've given up for the time being. I think it would be wiser to 
wait until LLVM supports MSVC exceptions, which is currently 
active work in progress, e.g., see 
http://reviews.llvm.org/rL232003 and 
http://www.llvm.org/docs/ExceptionHandling.html. We could then 
probably use MSVCRT's personality function __CxxFrameHandler3 or 
__C_specific_handler.


More information about the digitalmars-d-ldc mailing list