Displaying 1 result from an estimated 1 matches for "zz_sigsetjmp".
Did you mean:
__sigsetjmp
2005 Nov 25
0
[LLVMdev] Re: setjmp/longjmp interoperable between llvm and gcc?
...do. Another option is to
>compile everything with LLVM if possible.
>
>-Chris
I'm having success with the third alternative, in which each setjmp
tags the jmpbuf to show which flavor of longjmp is required.
Below is the header file that I defined to wrap the setjmp/longjmp calls.
ZZ_SIGSETJMP augments the jmpbuf with a function pointer to a longjmp
call that is compiled in the same compilation unit as the setjmp.
ZZ_SIGLONGJMP calls through this function pointer.
This way, an llvm-compiled longjmp is used for every longjmp to an
llvm-compiled setjmp; and a gcc-compiled longjmp is used...