]> sourceware.org Git - glibc.git/commitdiff
hppa: Define __NO_LONG_DOUBLE_MATH so headers are consistent with libm build [BZ...
authorJohn David Anglin <dave.anglin@bell.net>
Sun, 22 Nov 2015 22:15:04 +0000 (17:15 -0500)
committerMike Frysinger <vapier@gentoo.org>
Tue, 29 Dec 2015 18:24:51 +0000 (13:24 -0500)
The attached patch fixes BZ #19270 and the Debian gmt package now builds
successfully.  Aside from the comment, the define of __NO_LONG_DOUBLE_MATH
is similar to that in the generic version of glibc.

Build tested on hppa-unknown-linux-gnu with no observed regressions.

ChangeLog
sysdeps/hppa/fpu/bits/mathdef.h

index 00a869c6ed515583b5bbb0fb9d9b5778575784d9..c2c5af6e662c9c8e81b0ceec776cc3ebcff3101e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2015-12-29  John David Anglin  <danglin@gcc.gnu.org>
+
+       [BZ #19270]
+       * sysdeps/hppa/fpu/bits/mathdef.h (__NO_LONG_DOUBLE_MATH): Define.
+
 2015-12-28  Mike Frysinger  <vapier@gentoo.org>
 
        [BZ #15421]
index d189f4a373c35f35387420a9a64e573c1da85f87..31f13e4f8571d0afadd7d92538b7a16697ccafe3 100644 (file)
@@ -34,5 +34,10 @@ typedef double double_t;     /* `double' expressions are evaluated as
 
 #endif /* ISO C99 */
 
-/* On hppa `long double' is 64-bits. */
-#undef __NO_LONG_DOUBLE_MATH
+#ifndef __NO_LONG_DOUBLE_MATH
+/* On hppa `long double' and `double' are 64-bits.  So, libm is built
+   with NO_LONG_DOUBLE defined.  The following define ensures the library
+   and headers are consistent.  This disables the declaration of all the
+   `long double' function variants.  */
+# define __NO_LONG_DOUBLE_MATH 1
+#endif
This page took 0.173177 seconds and 5 git commands to generate.