public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug libfortran/59836] [4.7/4.8/4.9 Regression] Wrong outputs with rounding formats for some values. Date: Sat, 18 Jan 2014 16:46:00 -0000 [thread overview] Message-ID: <bug-59836-4-kswUJENH6E@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-59836-4@http.gcc.gnu.org/bugzilla/> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59836 Dominique d'Humieres <dominiq at lps dot ens.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jb at gcc dot gnu.org --- Comment #5 from Dominique d'Humieres <dominiq at lps dot ens.fr> --- The line if (w > 0 && d == 0 && p == 0) has been introduced at r173408 and obviously the first code in comment 0 has started to give the wrong output after it. The second code in comment 0 has started to give the wrong output after r185433 (so far I did not try to understand why). Note that the block if (nbefore + nafter == 0) { ndigits = 0; if (nzero_real == d && digits[0] >= rchar) { /* We rounded to zero but shouldn't have */ nzero--; nafter = 1; digits[0] = '1'; ndigits = 1; } is present in the first version of libgfortran/io/write_float.def (r128114) with char replaced with '5' (the change was introduced at r152263).
next prev parent reply other threads:[~2014-01-18 16:46 UTC|newest] Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top 2014-01-15 22:24 [Bug libfortran/59836] New: " dominiq at lps dot ens.fr 2014-01-16 8:37 ` [Bug libfortran/59836] [4.7/4.8/4.9 Regression] " dominiq at lps dot ens.fr 2014-01-16 22:08 ` dominiq at lps dot ens.fr 2014-01-18 11:22 ` dominiq at lps dot ens.fr 2014-01-18 16:46 ` dominiq at lps dot ens.fr [this message] 2014-01-18 17:22 ` jvdelisle at gcc dot gnu.org 2014-01-18 17:44 ` dominiq at lps dot ens.fr 2014-01-18 17:46 ` dominiq at lps dot ens.fr 2014-01-19 23:18 ` jvdelisle at gcc dot gnu.org 2014-01-19 23:21 ` jvdelisle at gcc dot gnu.org 2014-01-31 10:53 ` rguenth at gcc dot gnu.org 2014-02-11 9:28 ` [Bug libfortran/59836] [4.7/4.8 " dominiq at lps dot ens.fr 2014-02-15 15:49 ` jvdelisle at gcc dot gnu.org 2014-02-15 15:58 ` jvdelisle at gcc dot gnu.org 2014-02-15 16:53 ` jvdelisle at gcc dot gnu.org 2014-02-15 16:55 ` jvdelisle at gcc dot gnu.org 2014-02-15 17:22 ` jvdelisle at gcc dot gnu.org
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=bug-59836-4-kswUJENH6E@http.gcc.gnu.org/bugzilla/ \ --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: linkBe 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).