[LLVMdev] built-in longjmp and setjmp

Duncan Sands baldrick at free.fr
Wed Apr 27 12:25:22 PDT 2011


Hi Akira,

> When I compile and run the following program, is it expected that global
> variable gi2 will be incremented twice? It seems that the code generated with
> clang and llc increments it only once (line 37-43 of attached file).

try marking gi2 volatile.

Ciao, Duncan.



More information about the llvm-dev mailing list