[PATCH] PR fortran/66864 -- Use the right precision in FLOOR()
Janne Blomqvist
blomqvist.janne@gmail.com
Tue Jul 14 20:40:00 GMT 2015
On Tue, Jul 14, 2015 at 10:20 PM, Steve Kargl
<sgk@troutmask.apl.washington.edu> wrote:
> The attached patch fixes an issue in the constant
> folding of FLOOR(). In the old code, the precision
> of an temporary MPFR variable was set according to
> the requested kind of the INTEGER result, ie., the
> wrong precision. The patch sets the precision to
> the precision of the arg of FLOOR(). Regression
> tested on trunk. OK to commit.
>
> 2015-07-14 Steven G. Kargl <kargl@gcc.gnu.org>
>
> * simplify.c (gfc_simplify_floor): Set precision of temporary to
> that of arg.
>
> 2015-07-14 Steven G. Kargl <kargl@gcc.gnu.org>
>
> gfortran.dg/pr66864.f90: New test.
>
>
> --
> Steve
Ok, thanks.
--
Janne Blomqvist
More information about the Fortran
mailing list