Hi Anton,<br><br>> This seems to be well-known problem with interacting setjmp/longjmp and<br>> optimization passes. Actually, this is LLVM PR1520.<br><br>I didn't find that PR because it doesn't mention setjmp!
<br><br>> The problem is that<br>> setjmp/longjmp changes codeflow in inpredictable manner (especially, if<br>> jump buffer escapes from function). We need some clever idea how to<br>> represent such stuff.<br>
<br>I would expect llvm-gcc to use LLVM's setjmp/longjmp intrinsics and then to run the LowerSetJmp pass to turn the intrinsic calls into uses of invoke and unwind. At that point, the control flow is explicit, isn't it?
<br><br>Thanks,<br>Jay.