[Bug fortran/31202] Incorrect rounding generated for NINT
fxcoudert at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Fri Aug 3 21:26:00 GMT 2007
------- Comment #8 from fxcoudert at gcc dot gnu dot org 2007-08-03 21:26 -------
Subject: Bug 31202
Author: fxcoudert
Date: Fri Aug 3 21:26:10 2007
New Revision: 127185
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=127185
Log:
PR fortran/31202
* f95-lang.c (gfc_init_builtin_functions): Defin builtins for
lround{f,,l} and llround{f,,l}.
* trans-intrinsic.c (build_fix_expr): Generate calls to the
{l,}round{f,,l} functions.
* intrinsics/c99_functions.c (roundl,lroundf,lround,lroundl,
llroundf,llround,llroundl): New functions.
* c99_protos.h (roundl,lroundf,lround,lroundl,llroundf,llround,
llroundl): New prototypes.
* configure.ac: Check for lroundf, lround, lroundl, llroundf,
llround and llroundl.
* configure: Regenerate.
* Makefile.in: Regenerate.
* config.h.in: Regenerate.
* gfortran.dg/nint_2.f90: New test.
Added:
trunk/gcc/testsuite/gfortran.dg/nint_2.f90
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/f95-lang.c
trunk/gcc/fortran/trans-intrinsic.c
trunk/gcc/testsuite/ChangeLog
trunk/libgfortran/ChangeLog
trunk/libgfortran/Makefile.in
trunk/libgfortran/c99_protos.h
trunk/libgfortran/config.h.in
trunk/libgfortran/configure
trunk/libgfortran/configure.ac
trunk/libgfortran/intrinsics/c99_functions.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31202
More information about the Gcc-bugs
mailing list