From patchwork Wed Oct 11 00:04:25 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joseph Myers X-Patchwork-Id: 824114 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-85622-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="FZSPv8Hx"; 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 3yBZ3c078Jz9t5C for ; Wed, 11 Oct 2017 11:04:43 +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=fuONX930TgRDzQ60SYwdcPUlU4lzo m1nX0BJmprdOVg02TUjxEF+B3W/tQg2Xak30LGiVYh5dYBctuvwP8dKdLmVJ4p4p l3tfWdvSnONXv5zpMSRrmh1HUKH5CJ0KN/Eq7HN2QXtlgtY1LL0wC38/UWAsgqYT pEA1KbIF4r7WVQ= 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=6UwyNFx7eifXpD5I4ChDBXFNy84=; b=FZS Pv8Hxjyq8QuaeHEXxnVnvxFDs2al1mPQJsMWh6XYwVJ30wIZk4R0fVs4m5tdggTv qKPuV/RqzPiweApf/o5soGfNio4eIDL3w8ErDs7C3jgRSNnke8HuYsF9kGYaUa4z AEIpFjG63x6vxLhIj6nypJ/xQaiYr177qPuGnT6w= Received: (qmail 71397 invoked by alias); 11 Oct 2017 00:04:36 -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 71388 invoked by uid 89); 11 Oct 2017 00:04:36 -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= X-HELO: relay1.mentorg.com Date: Wed, 11 Oct 2017 00:04:25 +0000 From: Joseph Myers To: Subject: Use libm_alias_* in soft-fp [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 the soft-fp implementations of fma functions use the libm_alias_* macros. Tested with build-many-glibcs.py that installed stripped shared libraries are unchanged by the patch. Committed. 2017-10-11 Joseph Myers * soft-fp/fmadf4.c: Include . [!__fma] (fma): Define using libm_alias_double. * soft-fp/fmasf4.c: Include . [!__fmaf] (fmaf): Define using libm_alias_float. * soft-fp/fmatf4.c: Include . (fmal): Define using libm_alias_ldouble. diff --git a/soft-fp/fmadf4.c b/soft-fp/fmadf4.c index 74e2360..313547d 100644 --- a/soft-fp/fmadf4.c +++ b/soft-fp/fmadf4.c @@ -27,6 +27,7 @@ #include #include +#include /* R_e is not set in cases where it is not used in packing, but the compiler does not see that it is set in all cases where it is @@ -63,10 +64,5 @@ __fma (double a, double b, double c) DIAG_POP_NEEDS_COMMENT; #ifndef __fma -weak_alias (__fma, fma) -#endif - -#ifdef NO_LONG_DOUBLE -strong_alias (__fma, __fmal) -weak_alias (__fmal, fmal) +libm_alias_double (__fma, fma) #endif diff --git a/soft-fp/fmasf4.c b/soft-fp/fmasf4.c index 2d3120e..295223d 100644 --- a/soft-fp/fmasf4.c +++ b/soft-fp/fmasf4.c @@ -27,6 +27,7 @@ #include #include +#include /* R_e is not set in cases where it is not used in packing, but the compiler does not see that it is set in all cases where it is @@ -63,5 +64,5 @@ __fmaf (float a, float b, float c) DIAG_POP_NEEDS_COMMENT; #ifndef __fmaf -weak_alias (__fmaf, fmaf) +libm_alias_float (__fma, fma) #endif diff --git a/soft-fp/fmatf4.c b/soft-fp/fmatf4.c index 553a7ad..79be52c 100644 --- a/soft-fp/fmatf4.c +++ b/soft-fp/fmatf4.c @@ -27,6 +27,7 @@ #include #include +#include /* R_e is not set in cases where it is not used in packing, but the compiler does not see that it is set in all cases where it is @@ -62,4 +63,4 @@ __fmal (long double a, long double b, long double c) } DIAG_POP_NEEDS_COMMENT; -weak_alias (__fmal, fmal) +libm_alias_ldouble (__fma, fma)