This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/34192] [4.2, 4.3 Regression] NEAREST can return wrong numbers
- From: "burnus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Nov 2007 18:05:58 -0000
- Subject: [Bug fortran/34192] [4.2, 4.3 Regression] NEAREST can return wrong numbers
- References: <bug-34192-15407@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from burnus at gcc dot gnu dot org 2007-11-22 18:05 -------
Hmm, this does not seem to be easily possible in MPFR.
http://websympa.loria.fr/wwsympa/arc/mpfr/2007-11/msg00026.html
Possible implementation (as of 2005) by Tobias Schlüter:
http://gcc.gnu.org/ml/fortran/2005-04/msg00389.html
Steve writes to my MPFR email of today:
| This is a point I had not fully appreciated when I patched
| gfc_simplify_nearest. Try restoring the code that I removed.
| I don't remember why I removed the code, although I suspect
| that range_check function should properly handle subnormal
| numbers.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34192