"Tech Win" <tech_win@xxxxxxx> writes: > But if I use -Os when compiling, the result is: > ================= LAST =============== > 1 --- 1 > 1 --- 0 > 1 --- 0 > t=2525.00 This certainly suggests a bug in the compiler. > My GCC version is 3.4.6. I tried 4.3.2 on i686-unknown-linux-gnu, and it worked as expected with both -O2 and -O2. The current version of gcc is 4.4.0. Ian