This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/31202] Incorrect rounding generated for NINT
- From: "kargl at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Jun 2007 16:10:28 -0000
- Subject: [Bug fortran/31202] Incorrect rounding generated for NINT
- References: <bug-31202-6642@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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