This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] libgfortran format conversion bug (PR libgfortran/22412)
- From: Tobias Schlüter <tobias dot schlueter at physik dot uni-muenchen dot de>
- To: David Edelsohn <dje at watson dot ibm dot com>
- Cc: gcc-patches at gcc dot gnu dot org, fortran at gcc dot gnu dot org
- Date: Tue, 12 Jul 2005 00:31:57 +0200
- Subject: Re: [PATCH] libgfortran format conversion bug (PR libgfortran/22412)
- References: <200507112222.j6BMMl024120@makai.watson.ibm.com>
David Edelsohn wrote:
> The libgfortran I/O functions otoa() and btoa() use a buffer
> `scratch'. The pointer into the buffer is initialized in those two
> functions as
>
> p = scratch + sizeof (SCRATCH_SIZE) - 1;
D'oh.
> Okay for mainline and 4.0?
Of course.
Thanks,
- Tobi
> * io/write.c (otoa): Bias p by SCRATCH_SIZE, not
> sizeof (SCRATCH_SIZE).
> (btoa): Same.
>