This is the mail archive of the
mailing list for the GCC project.
Re: help interpreting gcc 4.1.1 optimisation bug
> 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.