[patch, libgfortran] PR77393 [7 Regression] Revision r237735 changed the behavior of F0.0

Janne Blomqvist blomqvist.janne@gmail.com
Wed Aug 31 07:45:00 GMT 2016

On Wed, Aug 31, 2016 at 6:04 AM, Jerry DeLisle <jvdelisle@charter.net> wrote:
> Hi all,
> The attached patch fixes the problem by adding a new helper function to
> determine the buffer size needed for F0 editing depending on the kind. In this
> new function there are some constants presented which document the limits needed
> for each kind type.
> As can be seen, the required buffers are fixed on stack at 256 bytes which will
> handle almost all cases unless a user is doing something with unusually wide
> formats.  The buffer is malloc'ed if a larger size is needed.
> I have not changed the buffering mechanism, only the method of determining the
> needed size.
> Regression tested on x86-linux. New test case provided.
> OK for trunk?

Ok, thanks for the patch!

Janne Blomqvist

More information about the Gcc-patches mailing list