This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: floating point war casualty list
- From: Stephen L Moshier <steve at moshier dot net>
- To: Robert Dewar <dewar at gnat dot com>
- Cc: <toon at moene dot indiv dot nluug dot nl>, <gcc at gcc dot gnu dot org>, <law at redhat dot com>
- Date: Wed, 5 Jun 2002 08:33:45 -0400 (EDT)
- Subject: Re: floating point war casualty list
> Changes in this area are really delicate, and
> could use more careful study before being implemented. Keeping
> floating-point working correctly on all targets is really tricky, since
> very few people know what the floating-point characteristics are on
> all targets.
A compiler company once paid me to track down and replicate
a decimal - to - binary conversion mistake in the Microsoft compiler.
I did so, but after the system was running nicely, generating
deliberately wrong answers, I went to the manager and asked why
in the world would they do this, why didn't they simply get
Microsoft to fix the bug. Answer, "Microsoft doesn't _want_
to fix the bug!"
I will eventually remember the bug-compatiblity reasons why the DEC
format is done the way it is, but there is no telling how long it will
take to find out why some of those other format conversions are done
the way they are. It is just not a wise move to disturb this stuff,
because it will take a very long time for the dust to settle down.
The most generous explanation offered for the recent changes is that
somebody was on a cosmetic cleanup campaign. It would be far better
to let it be, leave it ugly.