public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "dominiq at lps dot ens dot fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libfortran/33469] Default formats for real input are not precise enough
Date: Wed, 03 Oct 2007 19:30:00 -0000	[thread overview]
Message-ID: <20071003193006.24360.qmail@sourceware.org> (raw)
In-Reply-To: <bug-33469-12313@http.gcc.gnu.org/bugzilla/>



------- Comment #10 from dominiq at lps dot ens dot fr  2007-10-03 19:30 -------
gcc/testsuite/gfortran.dg/default_format_1.f90 passes the test if I replace

        if (y /= x) res = res + 1

by

        z=0.0_k
        if (abs(x-y)>nearest(z,1.0_k)) res = res + 1

in the two places of test_r8, i.e. the tests fail for TINY() because the result
differs from the original value by ~+/-5.0E-324: the smallest denormalized
number.  I have noticed that this happens for an odd number of iterations of
NEAREST(), but I did not figure out if the culprit was the WRITE() or the
READ(). I have also seen the same problem with xlf and g95.

I suggest that the test includes this change and does not xfail on Darwin.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33469


  parent reply	other threads:[~2007-10-03 19:30 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-18  9:46 [Bug fortran/33469] New: Add one digit to the default formatted output dominiq at lps dot ens dot fr
2007-09-18  9:47 ` [Bug fortran/33469] " dominiq at lps dot ens dot fr
2007-09-18 17:57 ` burnus at gcc dot gnu dot org
2007-09-19  9:54 ` fxcoudert at gcc dot gnu dot org
2007-09-19  9:55 ` fxcoudert at gcc dot gnu dot org
2007-09-19  9:56 ` [Bug libfortran/33469] Default formats for real input are not precise enough fxcoudert at gcc dot gnu dot org
2007-09-19 12:38 ` dominiq at lps dot ens dot fr
2007-10-01 23:28 ` fxcoudert at gcc dot gnu dot org
2007-10-02  0:37 ` fxcoudert at gcc dot gnu dot org
2007-10-02  8:29 ` dominiq at lps dot ens dot fr
2007-10-02 23:28 ` fxcoudert at gcc dot gnu dot org
2007-10-02 23:31 ` fxcoudert at gcc dot gnu dot org
2007-10-03 19:30 ` dominiq at lps dot ens dot fr [this message]
2007-10-03 19:34 ` dominiq at lps dot ens dot fr

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20071003193006.24360.qmail@sourceware.org \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).