This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran 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] PR77393 [7 Regression] Revision r237735 changed the behavior of F0.0


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


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