This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [patch, libgfortran] PR77393 [7 Regression] Revision r237735 changed the behavior of F0.0
- From: Janne Blomqvist <blomqvist dot janne at gmail dot com>
- To: Jerry DeLisle <jvdelisle at charter dot net>
- Cc: gfortran <fortran at gcc dot gnu dot org>, gcc patches <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 31 Aug 2016 10:45:08 +0300
- Subject: Re: [patch, libgfortran] PR77393 [7 Regression] Revision r237735 changed the behavior of F0.0
- Authentication-results: sourceware.org; auth=none
- References: <dea57bf0-3c91-0b32-7045-c7fef054e266@charter.net>
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