This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[libstdc++v3 patch / PR40038] restore definition of ceill


src/math_stubs_long_double.cc is missing the definition of ceill, which was
originally found in libmath/stubs.c up to GCC 4.3.

The other symbol mentioned in the report (tanhl) is there, it is just
accidentally removed in the proposed patch for PR39491.

Ok for the trunk and the 4.4 branch?

  Matthias
2009-05-06  Matthias Klose  <doko@ubuntu.com>

	PR libstdc++/40038
	* src/math_stubs_long_double.cc: Add ceill.

Index: libstdc++-v3/src/math_stubs_long_double.cc
===================================================================
--- libstdc++-v3/src/math_stubs_long_double.cc	(revision 147161)
+++ libstdc++-v3/src/math_stubs_long_double.cc	(working copy)
@@ -70,6 +70,14 @@
   }
 #endif
 
+#ifndef _GLIBCXX_HAVE_CEILL
+  long double
+  ceill(long double x)
+  {
+    return ceil((double) x);
+  }
+#endif
+
 #ifndef _GLIBCXX_HAVE_COSL
   long double
   cosl(long double x)

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]