Skip to content

Commit

Permalink
hppa: Define __NO_LONG_DOUBLE_MATH so headers are consistent with lib…
Browse files Browse the repository at this point in the history
…m build [BZ #19270]

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.
  • Loading branch information
John David Anglin authored and Mike Frysinger committed Dec 29, 2015
1 parent d46256f commit d51442a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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]
Expand Down
9 changes: 7 additions & 2 deletions sysdeps/hppa/fpu/bits/mathdef.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit d51442a

Please sign in to comment.