On 04/16/2013 01:53 PM, Jeroen Demeyer wrote:
I have some problematic code using setjmp() behaving differently from what I expect. I would like to know whether it is a bug in GCC or whether I am somehow abusing setjmp()/longjmp(). Call the example program below jmp.c and compile with gcc -Og jmp.c -o jmp using GCC-4.8.0. Run the program ./jmp and the output is
Compiling with -fno-tree-dominator-opts makes the program run as expected.