[LLVMdev] setjmp - longjmp

Khaled ElWazeer khalid.alwazeer at gmail.com
Tue Oct 4 15:10:20 PDT 2011


Hi,

I have some code which has sigsetjmp / longjmp. After a longjmp, unreachable
is inserted, which is fine. The problem is that in the backend before
calling longjmp, some register was spilled to a stack location which is live
across the jmp. I mean, it will be live after jumping. The stack location
was initialized before the call to setjmp, and is used afterwards.

Is there any bug in handling such a case? I mean, how do LLVM knows about
CFG in case of longjmp / setjmp calls?

Thanks,
-Khaled
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20111004/be10a121/attachment.html>


More information about the llvm-dev mailing list