Hi all,
Im compiling the code bellow for x86 with gcc 4.4.3 and 4.5. Is it correct
that at the end of main the value of variable b should have been 4? When
executing I get value 3.
#include "stdio.h"
int *ptr;
int inc(void){
(*ptr)++;
return 1;
}
int main (void){
int a, b = 2;
ptr
Im writing to you regarding a possible bug in linear loop transfor.
The bug can be reproduce by compiling the attached c file with gcc.4.5.0
(20100204, 20100325) on x86 machine.
The compiler flags that reproduce the error are:
-O2 -fno-inline -fno-tree-ch -ftree-loop-linear
If the compiler is ru