search for: tassert

Displaying 1 result from an estimated 1 matches for "tassert".

Did you mean: assert
2012 Nov 30
1
[LLVMdev] clang : assert ignored with -O1 ?!
...en compiling with -O1 (not -O0). note 1 : the name 'assert' is not the problem. note 2 : if the while(1) loop has some side effect, like increasing a global variable, it is not removed. => Is it a normal behaviour of -O1 ? I did not find any documentation about it. -- Fred -- $ cat tassert.c int loop=0; void infloop_assert(){ while(1){ // loop++; //uncomment me } } int test(int x){ if (x) infloop_assert(); << call here return 1; } ######" $ clang -O0 -emit-llvm -S -c tassert.c -o tassert.ll && cat tassert.ll ; ModuleID = 'tassert.c...