[PATCH] gfortran -- Map REAL128 to REAL kind type with widest precision
Steve Kargl
sgk@troutmask.apl.washington.edu
Sat Feb 11 01:00:00 GMT 2017
On Fri, Feb 10, 2017 at 04:52:09PM -0800, Jerry DeLisle wrote:
>
> gcc112 is a power8 machine.
>
> $ gfc -static -mfloat128 -mcpu=power8 foo.f90
> $ ./a.out
> 16 106 31
>
> $ gfc -static -mfloat128 -mabi=ieeelongdouble foo.f90
> gfc: warning: using IEEE extended precision long double
> f951: Warning: using IEEE extended precision long double
> $ ./a.out
> 16 113 33
>
The warning looks strange. You've clearly asked the
compiler to use IEEE 754, so why warn? Seems like a
bug.
--
Steve
20161221 https://www.youtube.com/watch?v=IbCHE-hONow
More information about the Fortran
mailing list