[Bug fortran/31202] Incorrect rounding generated for NINT

kargl at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Fri Jun 29 16:10:00 GMT 2007



------- Comment #7 from kargl at gcc dot gnu dot org  2007-06-29 16:10 -------
(In reply to comment #6)
> (In reply to comment #5)
> > is this patch still OK ?
> 
> The lround patch should be OK on C99 targets, but it would probably break
> things on non-C99 targets, which is why I didn't submit it for formal review. I

On non-c99 targets, gfortran supplies roundf and roundl.  You could
do (GFC_INTEGER_?) roundl() for lroundl().


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31202



More information about the Gcc-bugs mailing list