[cfe-dev] LLVM/Clang and setjmp/longjmp exception handling on MinGW

Anton Korobeynikov anton at korobeynikov.info
Sun Oct 9 13:35:29 PDT 2011

Hello Ruben,

> GCC produces the sjlj initialization code, where Clang does not. Is sjlj
> exception handling not used with Clang or is this a genuine bug?
> Will fixing this hinder future efforts of using/porting stdcxxrt and
> libunwind for MinGW, or will "flipping a hardcoded switch" be enough to make
> that transition?
clang/llvm does not support sjlj exceptions (with the exception of arm/darwin).
So, please consider using dwarf-based eh (though it might be
incomplete on windows).

With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University

More information about the cfe-dev mailing list