[patch, libgfortran] PR47285 G format outputs wrong number of characters when decimal supplied in literal

Janne Blomqvist blomqvist.janne@gmail.com
Wed Jan 26 15:27:00 GMT 2011


On Wed, Jan 26, 2011 at 05:49, Jerry DeLisle <jvdelisle@frontier.com> wrote:
> Hi,
>
> As far as I can tell.  ;)
>
> This patch fixes the problem.  I have added a try return type to
> output_float so that the OUTPUT_FLOAT_FMT_G routines will know when the
> field width is too small. This enables padding with '*' instead of ' ' in
> those cases.
>
> Also in F2008 R7 draft, we have at the very end of 10.7.5.2.2 Generalized
> real and complex editing
>
> "The value of w − n shall be positive."
>
> This is now fixed with:
>
> +  nb = nb >= w ? 0 : nb;\
>
> test case attached.  Regression tested on x86-64.  OK for trunk?

Ok, thanks; remember to create a ChangeLog entry for the testcase too.


-- 
Janne Blomqvist



More information about the Gcc-patches mailing list