What happened when using -Os with gcc?

Ian Lance Taylor iant@google.com
Thu Jul 2 02:34:00 GMT 2009


"Tech Win" <tech_win@shaw.ca> 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



More information about the Gcc-help mailing list