re PR fortran/31202 (Incorrect rounding generated for NINT)
authorFrancois-Xavier Coudert <fxcoudert@gcc.gnu.org>
Fri, 3 Aug 2007 21:26:10 +0000 (21:26 +0000)
committerFrançois-Xavier Coudert <fxcoudert@gcc.gnu.org>
Fri, 3 Aug 2007 21:26:10 +0000 (21:26 +0000)
commit94f548c244426f45bab1ae19d3359aa2b651dce0
treeb3c3360111641d52b502bddd36c0a4ce24d565cf
parent8db6f5454c392b098080e297de645be106d621af
re PR fortran/31202 (Incorrect rounding generated for NINT)

        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.

From-SVN: r127185
12 files changed:
gcc/fortran/ChangeLog
gcc/fortran/f95-lang.c
gcc/fortran/trans-intrinsic.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/nint_2.f90 [new file with mode: 0644]
libgfortran/ChangeLog
libgfortran/Makefile.in
libgfortran/c99_protos.h
libgfortran/config.h.in
libgfortran/configure
libgfortran/configure.ac
libgfortran/intrinsics/c99_functions.c