[LLVMdev] Do the LLVM SJLJ intrinsics interact with C++ exception handling and execute C++ cleanup actions?

Jim Grosbach grosbach at apple.com
Tue May 27 13:51:35 PDT 2014


The intrinsics are completely distinct from the standard library functions. The names are historical legacy from GCC. They’re used for 32-bit iOS exception handling. I’m not aware of them being tested or supported in any other context.

-Jim

On May 27, 2014, at 1:26 PM, Christian Schafmeister <chris.schaf at verizon.net> wrote:

> 
> 
> Do the LLVM Setjmp/Longjmp intrinsics interact with C++ exception handling and execute C++ cleanup actions?
> 
> I compiled a small example using setjmp/longjmp using clang and they did not execute C++ cleanup actions and calling longjmp bypassed calling destructors on objects that were allocated between the call to setjmp and longjmp.
> 
> I’m wondering if the LLVM intrinsics behave differently from setjmp/longjmp.
> 
> Best,
> 
> .Chris.
> 
> Christian Schafmeister
> Professor, Chemistry Department
> Temple University
> 
> 
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev





More information about the llvm-dev mailing list