From patchwork Thu Nov 30 23:53:11 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joseph Myers X-Patchwork-Id: 843253 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-87699-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="d3KJDOo4"; 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 3ynvP16Nrqz9sBZ for ; Fri, 1 Dec 2017 10:53:25 +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=LjbC5PEHdwqdJIRNJbvWrKn03cCrc 1PtM+wE+U9S9hdnkOI/fnhSN5NL9V96HDT6IcJy7HIJKzm2Kw+52y498OYDIk4JB JaQ9vgu9euBKmMQiON/npTHzYQbJ+DbKe4yTuQ964pFf3oKdYfNyTKK3NeAoa2kj TDUScL+GmTx7t8= 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=92Um0Zg9d6l3HF7hO5+k6QIa96E=; b=d3K JDOo4eSDxtsgkJyKSyca6qsIMOIP/yw2awa/8Y3pi30K/U+QyoTSDDz9arZTunTI fnanFmxFBdE4rREON5JU4eLb+nlssFALo/HPKsIURPZTK1x5sEUy2BC9vv2CuB/Q kk9Q6dTr3GMuBpADHPnIX5YWHuC62yAuQawiT4t0= Received: (qmail 72942 invoked by alias); 30 Nov 2017 23:53:19 -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 72930 invoked by uid 89); 30 Nov 2017 23:53:18 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-24.3 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_SHORT, KB_WAM_FROM_NAME_SINGLEWORD, RCVD_IN_DNSWL_NONE, SPF_PASS, URIBL_RED autolearn=ham version=3.3.2 spammy= X-HELO: relay1.mentorg.com Date: Thu, 30 Nov 2017 23:53:11 +0000 From: Joseph Myers To: Subject: Use libm_alias_float for coldfire [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-04.mgc.mentorg.com (139.181.222.4) Continuing the preparation for additional _FloatN / _FloatNx function aliases, this patch makes coldfire libm function implementations use libm_alias_float to define function aliases. Untested, given the currently broken state of GCC for coldfire. Committed. 2017-11-30 Joseph Myers * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include . (fabsf): Define using libm_alias_float. * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include . (lrintf): Define using libm_alias_float. * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include . (rintf): Define using libm_alias_float. diff --git a/sysdeps/m68k/coldfire/fpu/s_fabsf.c b/sysdeps/m68k/coldfire/fpu/s_fabsf.c index e134c10..eff9888 100644 --- a/sysdeps/m68k/coldfire/fpu/s_fabsf.c +++ b/sysdeps/m68k/coldfire/fpu/s_fabsf.c @@ -15,10 +15,12 @@ License along with the GNU C Library. If not, see . */ +#include + float __fabsf (float x) { asm ("fsabs.s %1,%0" : "=f" (x) : "dm" (x)); return x; } -weak_alias (__fabsf, fabsf) +libm_alias_float (__fabs, fabs) diff --git a/sysdeps/m68k/coldfire/fpu/s_lrintf.c b/sysdeps/m68k/coldfire/fpu/s_lrintf.c index 7f5c9d04..0ec1014 100644 --- a/sysdeps/m68k/coldfire/fpu/s_lrintf.c +++ b/sysdeps/m68k/coldfire/fpu/s_lrintf.c @@ -15,6 +15,8 @@ License along with the GNU C Library. If not, see . */ +#include + long int __lrintf (float x) { @@ -22,4 +24,4 @@ __lrintf (float x) asm ("fmove.l %1,%0" : "=dm" (result) : "f" (x)); return result; } -weak_alias (__lrintf, lrintf) +libm_alias_float (__lrint, lrint) diff --git a/sysdeps/m68k/coldfire/fpu/s_rintf.c b/sysdeps/m68k/coldfire/fpu/s_rintf.c index ea244e8..aa0e158 100644 --- a/sysdeps/m68k/coldfire/fpu/s_rintf.c +++ b/sysdeps/m68k/coldfire/fpu/s_rintf.c @@ -15,6 +15,8 @@ License along with the GNU C Library. If not, see . */ +#include + float __rintf (float x) { @@ -22,4 +24,4 @@ __rintf (float x) asm ("fint.s %1,%0" : "=f" (result) : "dm" (x)); return (float) result; } -weak_alias (__rintf, rintf) +libm_alias_float (__rint, rint)