This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/16607] Incorrect FP code generated in member data initialization
- From: "zack at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 Jul 2004 03:22:03 -0000
- Subject: [Bug c++/16607] Incorrect FP code generated in member data initialization
- References: <20040717172049.16607.npr1@suomi24.fi>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From zack at gcc dot gnu dot org 2004-07-19 03:22 -------
The C standard is actually quite clear that *none* of the problems covered by
bug 323 are allowed. We are agreed with you that this is a bug. The thing is,
it's a *hardware* bug. The 80387 floating point unit is broken as designed,
such that it is impossible to get standard-compliant floating point semantics
and good performance at the same time. Thus, we have -ffloat-store, which lets
you choose which you want, and that's the best we can do on the x86.
It's usually possible to structure floating-point code such that it's robust
against the sorts of errors that the bug introduces. You can also get a
computer without the hardware bug - neither the AMD64 nor the PowerPC has this
problem.
*** This bug has been marked as a duplicate of 323 ***
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16607