From patchwork Wed Sep 16 22:05:42 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joseph Myers X-Patchwork-Id: 518607 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 9C1101402BF for ; Thu, 17 Sep 2015 08:05:56 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b=nUQ70q4O; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:mime-version :content-type; q=dns; s=default; b=p0fq3PZ/tCz6eUHHIJ4gkBzvTQ1Ug RliRg2t/Rhp9lIcvocKmz21oDeuXnr6x8Khctqrr6fI/Fnv1ZFkCLgrRIpLVBSRG Ub/6UGGyS9zmQ1z2Bcd+hT/eggpHA+TXsNa81vhBm/pCOnJ4F7TwAmk3bPciETuc ANFCdp8HeTcKeM= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:mime-version :content-type; s=default; bh=HTuBACg4aakeGzuF5ZGdOwkC7L4=; b=nUQ 70q4OAtecE9YHiHroe9so6NGpzhabSY+DEOhAHgF3Wwt42OgFZTkyCYUNFzLy8tv JIuPJotQRiQZkK6kRvDdj0JxK4sSlpVVW/qliQuV4ZLwpFIjFw2IY3mC2SIBhHvj YLXtwVHpfvRDZ1TMU+bAbrHLgiwDKOITo9ePxmrU= Received: (qmail 83715 invoked by alias); 16 Sep 2015 22:05:50 -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 83703 invoked by uid 89); 16 Sep 2015 22:05:49 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.9 required=5.0 tests=AWL, BAYES_50, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: relay1.mentorg.com Date: Wed, 16 Sep 2015 22:05:42 +0000 From: Joseph Myers To: Subject: Don't declare float / long double Bessel functions for XSI POSIX (bug 18977) [committed] Message-ID: User-Agent: Alpine 2.10 (DEB 1266 2009-07-14) MIME-Version: 1.0 The float and long double versions of Bessel function (j0f, y1l, etc.) are not in POSIX; only the double versions are. This patch accordingly limits the declarations of those functions to __USE_MISC, and fixes the conform/ test expectations which matched the previous incorrect declarations. Tested for x86_64 and x86 (testsuite, and that installed stripped shared libraries are unchanged by this patch). Committed. 2015-09-16 Joseph Myers [BZ #18977] * math/bits/mathcalls.h [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (j0): Do not declare. [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (j1): Likewise. [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (jn): Likewise. [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (y0): Likewise. [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (y1): Likewise. [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (yn): Likewise. * conform/data/math.h-data [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j0f): Do not expect function. [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j1f): Likewise. [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (jnf): Likewise. [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y0f): Likewise. [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y1f): Likewise. [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (ynf): Likewise. [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j0l): Likewise. [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j1l): Likewise. [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (jnl): Likewise. [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y0l): Likewise. [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y1l): Likewise. [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (ynl): Likewise. diff --git a/conform/data/math.h-data b/conform/data/math.h-data index 0a05b8d..7153333 100644 --- a/conform/data/math.h-data +++ b/conform/data/math.h-data @@ -192,18 +192,8 @@ function float tanhf (float) function float erff (float) function float erfcf (float) function float hypotf (float, float) -#if !defined ISO99 && !defined ISO11 && !defined POSIX && !defined POSIX2008 -function float j0f (float) -function float j1f (float) -function float jnf (int, float) -#endif function float lgammaf (float) function float tgammaf (float) -#if !defined ISO99 && !defined ISO11 && !defined POSIX && !defined POSIX2008 -function float y0f (float) -function float y1f (float) -function float ynf (int, float) -#endif function float acoshf (float) function float asinhf (float) function float atanhf (float) @@ -260,18 +250,8 @@ function {long double} tanhl (long double) function {long double} erfl (long double) function {long double} erfcl (long double) function {long double} hypotl (long double, long double) -#if !defined ISO99 && !defined ISO11 && !defined POSIX && !defined POSIX2008 -function {long double} j0l (long double) -function {long double} j1l (long double) -function {long double} jnl (int, long double) -#endif function {long double} lgammal (long double) function {long double} tgammal (long double) -#if !defined ISO99 && !defined ISO11 && !defined POSIX && !defined POSIX2008 -function {long double} y0l (long double) -function {long double} y1l (long double) -function {long double} ynl (int, long double) -#endif function {long double} acoshl (long double) function {long double} asinhl (long double) function {long double} atanhl (long double) diff --git a/math/bits/mathcalls.h b/math/bits/mathcalls.h index 7ffe040..0b3fc86 100644 --- a/math/bits/mathcalls.h +++ b/math/bits/mathcalls.h @@ -234,7 +234,7 @@ __MATHDECL_1 (int,__isnan,, (_Mdouble_ __value)) __attribute__ ((__const__)); __MATHDECL_1 (int,isnan,, (_Mdouble_ __value)) __attribute__ ((__const__)); #endif -#if defined __USE_MISC || defined __USE_XOPEN +#if defined __USE_MISC || (defined __USE_XOPEN && __MATH_DECLARING_DOUBLE) /* Bessel functions. */ __MATHCALL (j0,, (_Mdouble_)); __MATHCALL (j1,, (_Mdouble_));