This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [patch, libgfortran] PR32611 Print sign of negative zero
- From: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- To: Jerry DeLisle <jvdelisle at verizon dot net>
- Cc: Fortran List <fortran at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Sun, 8 Jul 2007 22:48:09 -0700
- Subject: Re: [patch, libgfortran] PR32611 Print sign of negative zero
- References: <4691C8D6.7050703@verizon.net>
On Sun, Jul 08, 2007 at 10:34:14PM -0700, Jerry DeLisle wrote:
>
> 2007-07-08 Jerry DeLisle <jvdelisle@gcc.gnu.org>
>
> PR libgfortran/32611
> * io/write.c (output_float): Use the sign bit of the value to
> determine
> if a negative sign should be emitted for zero values. Do not emit
> the
> negative sign for zero if -std=legacy was set during compile.
>
> 2007-07-08 Jerry DeLisle <jvdelisle@gcc.gnu.org>
>
> PR libgfortran/32611
> * gfortran.dg/large_real_kind_1.f90: Update test.
> * gfortran.dg/pr17706.f90: Update test.
> * gfortran.dg/fmt_zero_digits.f90: Update test.
> * gfortran.dg/fmt_zero_precision.f90: Update test.
> * gfortran.dg/real_const_3.f90: Update test.
The patch looks ok to me. But, you may want to see how the discussion
on c.l.f goes before making a final decision.
--
Steve