This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: help interpreting gcc 4.1.1 optimisation bug
andrew@walrond.org writes:
>
> Well, my point above was that -strict-aliasing is included in -O2 and
> my code works fine at -O2. Only -O3 causes problems, so I didn't expect
> -fno-strict-aliasing to make any difference.
That doesn't follow at all. -O3 exposes much more information to the
compiler, so it can do more optimization. If the code is incorrect,
-O3 is more likely to provike problems.
Andrew.