Displaying 1 result from an estimated 1 matches for "pr1520".
Did you mean:
pr1500
2007 Aug 24
1
[LLVMdev] llvm-gcc4 and setjmp
...f the volatile variable v if setjmp returns non-zero - the bitcode
> always returns zero, whereas the spec for setjmp() says that f()
> should return 1 if g() does a longjmp().
This seems to be well-known problem with interacting setjmp/longjmp and
optimization passes. Actually, this is LLVM PR1520. The problem is that
setjmp/longjmp changes codeflow in inpredictable manner (especially, if
jump buffer escapes from function). We need some clever idea how to
represent such stuff.
PS: Compiling with -O0 should be easy workaround.
--
With best regards, Anton Korobeynikov.
Faculty of Mathemati...