g++ optimization issue??
ColinLaney
claney@online.de
Fri Dec 17 13:53:00 GMT 2004
On Fri, 2004-12-17 at 13:44 +0000, Dave Korn wrote:
> > -----Original Message-----
> > From: gcc-owner On Behalf Of ColinLaney
> > Sent: 17 December 2004 13:30
>
> > > I am not sure what you mean by ambiguous results.
> > I meant that in the same binary I get different results for the same
> > code. In my example code this has to do with excess precision - yes,
> > *but* it could have been avoided, say by simply doing a fildl every
> > time.
>
> Indeed. *Not* doing the fildl every time is an optimisation. And you asked
> for optimisations! :)
>
Well for those that work the way I thought it had to be. But point
taken. It's easier to write working code when you're aware of these
things.
> cheers,
> DaveK
More information about the Gcc
mailing list