re PR libfortran/47830 (errors in intrinsics/c99_functions.c)
authorTobias Burnus <burnus@net-b.de>
Tue, 22 Feb 2011 12:37:12 +0000 (13:37 +0100)
committerTobias Burnus <burnus@gcc.gnu.org>
Tue, 22 Feb 2011 12:37:12 +0000 (13:37 +0100)
2011-02-22  Tobias Burnus  <burnus@net-b.de>
            Kai-Uwe Eckhardt  <kuehro@gmx.de>

        PR libfortran/47830
        * intrinsics/c99_functions.c (roundl): Make C valid for
        HAVE_NEXTAFTERL.

Co-Authored-By: Kai-Uwe Eckhardt <kuehro@gmx.de>
From-SVN: r170396

libgfortran/ChangeLog
libgfortran/intrinsics/c99_functions.c

index d53329daae6f6a7defd6a1d38c0b98ad58d88d8b..98a1b3f577c16e6e10dfa34f1422365b81c00a3c 100644 (file)
@@ -1,3 +1,10 @@
+2011-02-22  Tobias Burnus  <burnus@net-b.de>
+           Kai-Uwe Eckhardt  <kuehro@gmx.de>
+
+       PR libfortran/47830
+       * intrinsics/c99_functions.c (roundl): Make C valid for
+       HAVE_NEXTAFTERL.
+
 2011-02-19  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
 
        PR libgfortran/47567
index 8a9c2f1d525fb2136fcb4ce37f4f0c880241d8ee..9ba5544a02b7ea5ea2fb6f3ea301e156b81d4de1 100644 (file)
@@ -600,7 +600,7 @@ roundl (long double x)
   if (x > DBL_MAX || x < -DBL_MAX)
     {
 #ifdef HAVE_NEXTAFTERL
-      static long double prechalf = nexafterl (0.5L, LDBL_MAX);
+      long double prechalf = nextafterl (0.5L, LDBL_MAX);
 #else
       static long double prechalf = 0.5L;
 #endif