This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: What happened when using -Os with gcc?
- From: Ian Lance Taylor <iant at google dot com>
- To: "Tech Win" <tech_win at shaw dot ca>
- Cc: <gcc-help at gcc dot gnu dot org>
- Date: Wed, 01 Jul 2009 19:33:52 -0700
- Subject: Re: What happened when using -Os with gcc?
- References: <001c01c9faa5$07a4d2c0$16ee7840$@ca>
"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