[Bug fortran/31202] Incorrect rounding generated for NINT

Krister Walfridsson cato@df.lth.se
Sun Aug 5 16:28:00 GMT 2007



On Sun, 5 Aug 2007, FX Coudert wrote:

>> NetBSD does not have lroundl (and not roundl, so lroundl is not added by
>> intrinsics/c99_functions.c) with the result that linking with libgfortran
>> fails with "undefined reference to `lroundl'".
>
> I have also introduced a roundl() fallback, but it depends on ceill() being 
> available. Now, what rounding long double functions does i386-netbsd have? 
> Does it have nextafterl?

NetBSD does not have any long double functions at all... (It seems to be 
farther behind the standards than I thought.  My goal for the coming 
months was to modernize the toolchain and libraries where needed.  Seems 
to be a bigger job than I expected... *sigh*)

    /Krister



More information about the Fortran mailing list