[PATCH] libgfortran: Correct FP feature macro checks
Thomas Koenig
tkoenig@netcologne.de
Wed Nov 25 19:13:27 GMT 2020
Hi Maciej,
> Infinity is the least of a problem, because as it turns out we have
> numerous FP library functions in libgfortran that require explicit porting
> to each FP format supported, like these settings:
>
> xbig = 26.543, xhuge = 6.71e+7, xmax = 2.53e+307;
The Fortran intrinsis like HUGE, EPSILON, SELECTED_REAL_KIND etc
would have to be handled correctly, both for simplification in
the front end and in the library.
Does the program
print *,HUGE(1.0)
print *,EPSILON(1.0)
end
print correct values?
Regards
Thomas
More information about the Gcc-patches
mailing list