OSDN Git Service

2011-04-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
authorjvdelisle <jvdelisle@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 15 Apr 2011 16:29:44 +0000 (16:29 +0000)
committerjvdelisle <jvdelisle@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 15 Apr 2011 16:29:44 +0000 (16:29 +0000)
PR libgfortran/48589
* io/write_float.def (write_infnan): Set width properly for G0.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@172502 138bc75d-0d04-0410-961f-82ee72b054a4

libgfortran/ChangeLog
libgfortran/io/write_float.def

index 8d53c6f..5dae754 100644 (file)
@@ -1,3 +1,8 @@
+2011-04-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
+
+       PR libgfortran/48589
+       * io/write_float.def (write_infnan): Set width properly for G0.
+
 2011-04-15  Tobias Burnus  <burnus@net-b.de>
 
        PR fortran/18918
@@ -15,6 +20,7 @@
        * intrinsics/system_clock.c: Use weakrefs only when needed and
        supported.
 
+>>>>>>> .r172501
 2011-04-12  Janne Blomqvist  <jb@gcc.gnu.org>
 
        * configure.ac: Use AC_TYPE_* to make sure we have (u)intptr_t,
index b72cf9f..ea9c99f 100644 (file)
@@ -654,11 +654,11 @@ write_infnan (st_parameter_dt *dtp, const fnode *f, int isnan_flag, int sign_bit
       mark = (sign == S_PLUS || sign == S_MINUS) ? 8 : 7;
 
       nb =  f->u.real.w;
-  
+
       /* If the field width is zero, the processor must select a width 
         not zero.  4 is chosen to allow output of '-Inf' or '+Inf' */
      
-      if (nb == 0)
+      if ((nb == 0) || dtp->u.p.g0_no_blanks)
        {
          if (isnan_flag)
            nb = 3;