This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] libgfortran format conversion bug (PR libgfortran/22412)


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]