From patchwork Tue Feb 7 13:34:38 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Gabriel F. T. Gomes" X-Patchwork-Id: 725113 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 3vHlhC5hqhz9s0m for ; Wed, 8 Feb 2017 00:35:07 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b="ADRPtmjb"; 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:from:to:subject:date:message-id:in-reply-to :references; q=dns; s=default; b=R7oazpjqLg25KR7arwJxv/QHZ+ZgHyU EZQpWF5EldAhBSJdbGYoOuENQ7Kz3Kpl1RnsmjyG9T8Y8iKKysNqyWXWwECeZw4F gohFw7eEia6sikjW2UYmPsDlU6JcCizH09Oq5IXX8ZOzJNd14EiB5ufFkAZPXDA2 cAoPED08Zmfg= 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:from:to:subject:date:message-id:in-reply-to :references; s=default; bh=NGNc6t584BKd1SJr2N0hwXRtNAw=; b=ADRPt mjbzl7XXiKaL4nQ6Ds6Xp5FRMY/0/3rx9GxkHP/c344qQoeS3bAUpUbM7cugSsHJ zQfQJNSuz3XRyjX5hqLmTHVpI2CZXwUrS/EO8StLo1qH91oaQL7Lm6Cvp6UaKQBZ mQckuCdjDs//LXZtTZPjlRXWi/eQyzCs+F58uM= Received: (qmail 89981 invoked by alias); 7 Feb 2017 13:34:52 -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 89908 invoked by uid 89); 7 Feb 2017 13:34:52 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 spammy=838, sk:LONG_DO, 67, 7, matherr X-HELO: mail.gftg.com.br From: "Gabriel F. T. Gomes" To: libc-alpha@sourceware.org Subject: [PATCH 1/3] Move w_lgamma_r to libm-compat-calls-auto Date: Tue, 7 Feb 2017 11:34:38 -0200 Message-Id: <1486474480-20773-2-git-send-email-gftg@linux.vnet.ibm.com> In-Reply-To: <1486474480-20773-1-git-send-email-gftg@linux.vnet.ibm.com> References: <1486474480-20773-1-git-send-email-gftg@linux.vnet.ibm.com> This patch adds the suffix "_compat" to lgamma_r wrappers and make some adjustments to #includes and Makefiles. This is a step towards deprecation of wrappers that use _LIB_VERSION / matherr / __kernel_standard functionality. 2017-02-07 Gabriel F. T. Gomes * math/Makefile (libm-calls): Move w_lgammaF_r... (libm-compat-calls-auto): Here. * math/w_lgamma_r.c: Add suffix "_compat" to filename. * math/w_lgammaf_r.c: Likewise. * math/w_lgammal_r.c: Likewise. * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise. * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise. * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise. * math/w_lgamma_r_compat.c: New file, copied from above. * math/w_lgammaf_r_compat.c: Likewise. * math/w_lgammal_r_compat.c: Likewise. * sysdeps/ia64/fpu/w_lgamma_r_compat.c: Likewise. * sysdeps/ia64/fpu/w_lgammaf_r_compat.c: Likewise. * sysdeps/ia64/fpu/w_lgammal_r_compat.c: Likewise. * sysdeps/ieee754/ldbl-opt/w_lgamma_r.c: Add suffix "_compat" to filename. * sysdeps/ieee754/ldbl-opt/w_lgammal_r.c: Likewise. * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: New file copied from above and adjusted for the new filenames. * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise. --- math/Makefile | 5 +++-- math/{w_lgamma_r.c => w_lgamma_r_compat.c} | 0 math/{w_lgammaf_r.c => w_lgammaf_r_compat.c} | 0 math/{w_lgammal_r.c => w_lgammal_r_compat.c} | 0 sysdeps/ia64/fpu/{w_lgammal_r.c => w_lgamma_r_compat.c} | 0 sysdeps/ia64/fpu/{w_lgammaf_r.c => w_lgammaf_r_compat.c} | 0 sysdeps/ia64/fpu/{w_lgamma_r.c => w_lgammal_r_compat.c} | 0 sysdeps/ieee754/ldbl-opt/{w_lgamma_r.c => w_lgamma_r_compat.c} | 2 +- sysdeps/ieee754/ldbl-opt/{w_lgammal_r.c => w_lgammal_r_compat.c} | 2 +- 9 files changed, 5 insertions(+), 4 deletions(-) rename math/{w_lgamma_r.c => w_lgamma_r_compat.c} (100%) rename math/{w_lgammaf_r.c => w_lgammaf_r_compat.c} (100%) rename math/{w_lgammal_r.c => w_lgammal_r_compat.c} (100%) rename sysdeps/ia64/fpu/{w_lgammal_r.c => w_lgamma_r_compat.c} (100%) rename sysdeps/ia64/fpu/{w_lgammaf_r.c => w_lgammaf_r_compat.c} (100%) rename sysdeps/ia64/fpu/{w_lgamma_r.c => w_lgammal_r_compat.c} (100%) rename sysdeps/ieee754/ldbl-opt/{w_lgamma_r.c => w_lgamma_r_compat.c} (78%) rename sysdeps/ieee754/ldbl-opt/{w_lgammal_r.c => w_lgammal_r_compat.c} (76%) diff --git a/math/Makefile b/math/Makefile index 9edea26..7a456da 100644 --- a/math/Makefile +++ b/math/Makefile @@ -67,7 +67,7 @@ libm-calls = \ s_nextafterF s_nexttowardF s_rintF s_scalblnF \ s_significandF s_sinF s_tanF s_tanhF \ w_expF \ - w_lgammaF w_lgammaF_r \ + w_lgammaF \ s_fpclassifyF s_truncF \ s_remquoF e_log2F e_exp2F s_roundF s_nearbyintF s_sincosF \ s_fmaF s_lrintF s_llrintF s_lroundF s_llroundF e_exp10F \ @@ -83,7 +83,8 @@ libm-compat-calls-auto = \ w_fmodF_compat w_hypotF_compat w_j0F_compat w_j1F_compat \ w_jnF_compat w_log2F_compat w_log10F_compat w_logF_compat \ w_powF_compat w_remainderF_compat w_scalbF_compat \ - w_sinhF_compat w_sqrtF_compat w_tgammaF_compat + w_sinhF_compat w_sqrtF_compat w_tgammaF_compat \ + w_lgammaF_r_compat libm-compat-calls-ldouble-yes = w_lgamma_compatl k_standardl libm-compat-calls = w_lgamma_compatf w_lgamma_compat k_standard k_standardf \ diff --git a/math/w_lgamma_r.c b/math/w_lgamma_r_compat.c similarity index 100% rename from math/w_lgamma_r.c rename to math/w_lgamma_r_compat.c diff --git a/math/w_lgammaf_r.c b/math/w_lgammaf_r_compat.c similarity index 100% rename from math/w_lgammaf_r.c rename to math/w_lgammaf_r_compat.c diff --git a/math/w_lgammal_r.c b/math/w_lgammal_r_compat.c similarity index 100% rename from math/w_lgammal_r.c rename to math/w_lgammal_r_compat.c diff --git a/sysdeps/ia64/fpu/w_lgammal_r.c b/sysdeps/ia64/fpu/w_lgamma_r_compat.c similarity index 100% rename from sysdeps/ia64/fpu/w_lgammal_r.c rename to sysdeps/ia64/fpu/w_lgamma_r_compat.c diff --git a/sysdeps/ia64/fpu/w_lgammaf_r.c b/sysdeps/ia64/fpu/w_lgammaf_r_compat.c similarity index 100% rename from sysdeps/ia64/fpu/w_lgammaf_r.c rename to sysdeps/ia64/fpu/w_lgammaf_r_compat.c diff --git a/sysdeps/ia64/fpu/w_lgamma_r.c b/sysdeps/ia64/fpu/w_lgammal_r_compat.c similarity index 100% rename from sysdeps/ia64/fpu/w_lgamma_r.c rename to sysdeps/ia64/fpu/w_lgammal_r_compat.c diff --git a/sysdeps/ieee754/ldbl-opt/w_lgamma_r.c b/sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c similarity index 78% rename from sysdeps/ieee754/ldbl-opt/w_lgamma_r.c rename to sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c index eeab6a6..673954c 100644 --- a/sysdeps/ieee754/ldbl-opt/w_lgamma_r.c +++ b/sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c @@ -1,5 +1,5 @@ #include -#include +#include #if LONG_DOUBLE_COMPAT(libm, GLIBC_2_0) compat_symbol (libm, __lgamma_r, lgammal_r, GLIBC_2_0); #endif diff --git a/sysdeps/ieee754/ldbl-opt/w_lgammal_r.c b/sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c similarity index 76% rename from sysdeps/ieee754/ldbl-opt/w_lgammal_r.c rename to sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c index 2545975..6fdf2bb 100644 --- a/sysdeps/ieee754/ldbl-opt/w_lgammal_r.c +++ b/sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c @@ -1,5 +1,5 @@ #include #undef weak_alias #define weak_alias(n,a) -#include +#include long_double_symbol (libm, __lgammal_r, lgammal_r);