From patchwork Fri Oct 13 16:43:55 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joseph Myers X-Patchwork-Id: 825600 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=sourceware.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=libc-alpha-return-85796-incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b="R0w5ohHF"; dkim-atps=neutral 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 3yDD814GVTz9sRm for ; Sat, 14 Oct 2017 03:44:17 +1100 (AEDT) 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=CqGpwFL/Imrr1R6C+3CsccwWbot6r wUPC32FCK2J8bMCEi/vkWNbrYyE2jg1xrmwkvphhx5WhuLu9/u6jIF9+ZBZGLaE5 uWAYTvHGlfXZ5H7fzbr8VfqAj5LQIW4UKSp4gh+RI/BBgrpuG88jXEyWaYUlrQXB G+wvUH9+HNNiMU= 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=Siw805+T48gRD1PpYvMK5gMi3qk=; b=R0w 5ohHFQ0RbbR/g9AtpxRm0tt55qNSyBAcR8KdjFDD1i/PTOcd0s9A4sxhUpzo2yCH YYpyDh6eycW6iyszoy3pP8g+lN5ji99nKdgMjs/gqPk6+vTlelUWq6s0ZwTEz3JR sd8J0n8MJ6dwfCi3/976KVz6fgvXzAm/KjKYUmrc= Received: (qmail 50023 invoked by alias); 13 Oct 2017 16:44:07 -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 47803 invoked by uid 89); 13 Oct 2017 16:44:05 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-24.5 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS, URIBL_RED autolearn=ham version=3.3.2 spammy=Hx-languages-length:1490 X-HELO: relay1.mentorg.com Date: Fri, 13 Oct 2017 16:43:55 +0000 From: Joseph Myers To: Subject: Use libm_alias_ldouble for SPARC fabsl [committed] Message-ID: User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 X-ClientProxiedBy: svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) To svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) This patch makes SPARC fabsl implementation use libm_alias_ldouble, to prepare them for also defining _Float128 function aliases. Tested with build-many-glibcs.py that installed stripped shared libraries (sparc64-linux-gnu and sparcv9-linux-gnu) are unchanged by the patch. Committed. 2017-10-13 Joseph Myers * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include . (fabsl): Define using libm_alias_ldouble. * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include . (fabsl): Define using libm_alias_ldouble. diff --git a/sysdeps/sparc/sparc32/fpu/s_fabsl.c b/sysdeps/sparc/sparc32/fpu/s_fabsl.c index 3c03b92..411a2e1 100644 --- a/sysdeps/sparc/sparc32/fpu/s_fabsl.c +++ b/sysdeps/sparc/sparc32/fpu/s_fabsl.c @@ -1,8 +1,9 @@ #include #include +#include long double __fabsl (long double x) { return __builtin_fabsl (x); } -long_double_symbol (libm, __fabsl, fabsl); +libm_alias_ldouble (__fabs, fabs) diff --git a/sysdeps/sparc/sparc64/fpu/s_fabsl.c b/sysdeps/sparc/sparc64/fpu/s_fabsl.c index 67e9f47..72e1c51 100644 --- a/sysdeps/sparc/sparc64/fpu/s_fabsl.c +++ b/sysdeps/sparc/sparc64/fpu/s_fabsl.c @@ -1,5 +1,7 @@ +#include + long double __fabsl (long double x) { return __builtin_fabsl (x); } -weak_alias (__fabsl, fabsl) +libm_alias_ldouble (__fabs, fabs)