public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libfortran/59771] New: Cleanup handling of Gw.0 and Gw.0Ee format
@ 2014-01-11 21:49 jvdelisle at gcc dot gnu.org
  2014-01-11 21:54 ` [Bug libfortran/59771] " jvdelisle at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: jvdelisle at gcc dot gnu.org @ 2014-01-11 21:49 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 59771
           Summary: Cleanup handling of Gw.0 and Gw.0Ee format
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libfortran
          Assignee: jvdelisle at gcc dot gnu.org
          Reporter: jvdelisle at gcc dot gnu.org

Carried over from PR48906 Comment 38

"If d is zero, kPEw.0 or kPEw.0Ee editing is used for Gw.0 editing or Gw.0Ee
editing respectively."

Possible patch needs more testing:

Index: write_float.def
===================================================================
--- write_float.def    (revision 206545)
+++ write_float.def    (working copy)
@@ -1046,7 +1046,8 @@
   rexp_d = calculate_exp_ ## x (-d);\
   if ((m > 0.0 && ((m < 0.1 - 0.1 * r * rexp_d) || (rexp_d * (m + r) >=
1.0)))\
       || ((m == 0.0) && !(compile_options.allow_std\
-              & (GFC_STD_F2003 | GFC_STD_F2008))))\
+              & (GFC_STD_F2003 | GFC_STD_F2008)))\
+      ||  d == 0)\
     { \
       newf.format = FMT_E;\
       newf.u.real.w = w;\


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2014-02-15 17:26 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-11 21:49 [Bug libfortran/59771] New: Cleanup handling of Gw.0 and Gw.0Ee format jvdelisle at gcc dot gnu.org
2014-01-11 21:54 ` [Bug libfortran/59771] " jvdelisle at gcc dot gnu.org
2014-01-19 23:18 ` jvdelisle at gcc dot gnu.org
2014-01-19 23:21 ` jvdelisle at gcc dot gnu.org
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:26 ` jvdelisle at gcc dot gnu.org

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).