Den 24-Maj-00 20:13:22 skrev Dave Jones fĝlgende om "Re: -O2 vs -O3":
>During the early development of Powertweak I set the Makefile files to
>compile some routines with -O3 instead of -O2. I then spent hours looking for
>a bug which wasn't there. The optimiser was over-zealous, and removed a
>pointer assignment.
>So I guess -O2 implies that we use only the known-to-be-safe optimisations.
It doesn't. None of the -Ox options turn on unsafe optimisations. While
compiler bugs do occasionally happen, most of the time it is the programmer
that violated the rules.
>On a sidenote, the optimiser in egcs 2.91.66 still generates bugged code in
>some situations which can only be worked around by setting -O0
>(Example available upon request)
Egcs 2.91.66 is old. Hopefully you reported the bug to the GCC team.
Regards,
/ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻTŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ\
| Rask Ingemann Lambertsen | E-mail: mailto:rask@kampsax.dtu.dk |
| Please do NOT Cc: to me or the | WWW: http://www.gbar.dtu.dk/~c948374/ |
| mailing list. I am on the list.| "ThrustMe" on XPilot, ARCnet and IRC |
| Machine-independent: Does not run on any existing machine. |
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Wed May 31 2000 - 21:00:14 EST