This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Bug fortran/31202] Incorrect rounding generated for NINT


Well, we'll see if I broke any non-C99 target :)

Yes, you did. :)


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've committed a fix as rev. 127227, adding a fallback implentation to the fallback implentation of roundl (by adding 0.5 and using a cast to an integer). Tested on i686-cygwin, where the same kind of failure was observed, by Jerry Delisle.


Let me know if this fix somehow does not improve the situation for you.

Thanks again for the report,
FX


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]