This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
RE: g++ optimization issue??
- From: ColinLaney <claney at online dot de>
- To: Dave Korn <dave dot korn at artimi dot com>
- Cc: 'Robert Dewar' <dewar at adacore dot com>, gcc at gcc dot gnu dot org
- Date: Fri, 17 Dec 2004 14:52:51 +0100
- Subject: RE: g++ optimization issue??
- References: <NUTMEGKuzkWZ7fIZHO10000085c@NUTMEG.CAM.ARTIMI.COM>
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