Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Mar 2002 16:32:29 +1100 (EST)
From:      Bruce Evans <bde@zeta.org.au>
To:        "ozan s. yigit" <oz@scot.canada.sun.com>
Cc:        Steve Kargl <sgk@troutmask.apl.washington.edu>, <current@FreeBSD.ORG>, <hackers@FreeBSD.ORG>
Subject:   Re: gcc -O broken in CURRENT 
Message-ID:  <20020315160900.G22865-100000@gamplex.bde.org>
In-Reply-To: <200203141846.g2EIkbI08862@zonzorp.canada.sun.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 14 Mar 2002, ozan s. yigit wrote:

> > Add the -ffloat-store flag to your compilation flags (or
> > add -msoft-float).
>
> that really means for this compiler on certain platforms, you
> can have slow and correct or fast and incorrect, but NOT fast
> and correct.

I think fast and correct is impossible on i386's.  "Correct"
requires assignments and casts to discard any extra precision,
and the fastest way to implement this is probably to store to
memory and reload.  The -ffloat-store kludge only does a subset
of the necessary conversions.  Doing them all would be slower
and correct, which is why gcc doesn't do them.  C90 can be read
as permitting this incorrectness, but C99 doesn't permit it.

Bruce


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020315160900.G22865-100000>