This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: gcc -O3 bug
On Fri, Jul 05, 2002 at 10:11:50AM +0800, Zhou Jingtao wrote:
> I heard that gcc has a bug when trying to use the option "-O3". I am
> wondering what it is and whether gcc-3.1 has fixed the bug.
> Thanks in advance.
There certainly were bugs in -O3, and some of them were indeed fixed
in the 3.1 release. Whether the bug you heard about has been fixed,
we do not know; we do not know which bug it was.
We suggest you try 3.1 and see if it works.
Keep in mind that -O3 enables optimizations that generally make code
worse, not better. Use it only if you know it will improve your code.
zw