From patchwork Sun Dec 13 02:40:10 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John David Anglin X-Patchwork-Id: 9995 Received: (qmail 30679 invoked by alias); 13 Dec 2015 02:44:22 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 29757 invoked by uid 89); 13 Dec 2015 02:40:17 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL, BAYES_00, SPF_PASS, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.2 X-HELO: mtlfep02.bell.net Subject: Re: [PATCH] hppa: Define __NO_LONG_DOUBLE_MATH so headers are consistent with libm build Mime-Version: 1.0 (Apple Message framework v1085) From: John David Anglin In-Reply-To: <66B8E687-EF7F-43F2-85D0-FDF44B08CAE1@bell.net> Date: Sat, 12 Dec 2015 21:40:10 -0500 Cc: GNU C Library , Carlos O'Donell , Mike Frysinger , Helge Deller Message-Id: References: <66B8E687-EF7F-43F2-85D0-FDF44B08CAE1@bell.net> To: John David Anglin X-Opwv-CommTouchExtSvcRefID: str=0001.0A020201.566CDA8B.0093, ss=1, re=0.000, fgs=0 On 2015-11-22, at 5:15 PM, John David Anglin wrote: > The attached patch fixes BZ #19270 and the Debian gmt package know 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. It was found in further testing that the abi lists need updating. This is currently installed in Debian glibc-2.21. Please review and install if okay. Dave --- John David Anglin dave.anglin@bell.net 2015-12-11 John David Anglin [BZ #19270] * sysdeps/hppa/fpu/bits/mathdef.h (__NO_LONG_DOUBLE_MATH): Define. 2015-12-11 Aurelien Jarno * sysdeps/unix/sysv/linux/hppa/libc.abilist: Add __finitel, __isinfl, and __isnanl. * sysdeps/unix/sysv/linux/hppa/libm.abilist: Add _finitel. diff --git a/sysdeps/hppa/fpu/bits/mathdef.h b/sysdeps/hppa/fpu/bits/mathdef.h index d189f4a..443655f 100644 --- a/sysdeps/hppa/fpu/bits/mathdef.h +++ b/sysdeps/hppa/fpu/bits/mathdef.h @@ -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 diff --git a/sysdeps/unix/sysv/linux/hppa/libc.abilist b/sysdeps/unix/sysv/linux/hppa/libc.abilist index 1d30644..72435f8 100644 --- a/sysdeps/unix/sysv/linux/hppa/libc.abilist +++ b/sysdeps/unix/sysv/linux/hppa/libc.abilist @@ -263,6 +263,7 @@ GLIBC_2.2 __fcntl F GLIBC_2.2 __ffs F GLIBC_2.2 __finite F GLIBC_2.2 __finitef F +GLIBC_2.2 __finitel F GLIBC_2.2 __flbf F GLIBC_2.2 __fork F GLIBC_2.2 __fpending F @@ -294,9 +295,11 @@ GLIBC_2.2 __isdigit_l F GLIBC_2.2 __isgraph_l F GLIBC_2.2 __isinf F GLIBC_2.2 __isinff F +GLIBC_2.2 __isinfl F GLIBC_2.2 __islower_l F GLIBC_2.2 __isnan F GLIBC_2.2 __isnanf F +GLIBC_2.2 __isnanl F GLIBC_2.2 __isprint_l F GLIBC_2.2 __ispunct_l F GLIBC_2.2 __isspace_l F diff --git a/sysdeps/unix/sysv/linux/hppa/libm.abilist b/sysdeps/unix/sysv/linux/hppa/libm.abilist index 9b7f40a..9e0e884 100644 --- a/sysdeps/unix/sysv/linux/hppa/libm.abilist +++ b/sysdeps/unix/sysv/linux/hppa/libm.abilist @@ -63,6 +63,7 @@ GLIBC_2.2 __clog10f F GLIBC_2.2 __clog10l F GLIBC_2.2 __finite F GLIBC_2.2 __finitef F +GLIBC_2.2 __finitel F GLIBC_2.2 __fpclassify F GLIBC_2.2 __fpclassifyf F GLIBC_2.2 __signbit F