Message ID | 20231204154242.1391291-1-dimitar@dinux.eu |
---|---|
State | New |
Headers |
Return-Path: <newlib-bounces+patchwork=sourceware.org@sourceware.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id EFA2D3857034 for <patchwork@sourceware.org>; Mon, 4 Dec 2023 15:43:08 +0000 (GMT) X-Original-To: newlib@sourceware.org Delivered-To: newlib@sourceware.org Received: from server28.superhosting.bg (server28.superhosting.bg [217.174.156.11]) by sourceware.org (Postfix) with ESMTPS id 7EDAF3858D28 for <newlib@sourceware.org>; Mon, 4 Dec 2023 15:42:57 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 7EDAF3858D28 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=dinux.eu Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=dinux.eu ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 7EDAF3858D28 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=217.174.156.11 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1701704579; cv=none; b=SCkJ/tKk9lzkMbTpAItX7QF0UPZv/f3E9EjeOGTww94WpjF959chZWMFgnHm8jU/DHnbfcrKOhwl9Ut0xIzWpINk0D0bobnT7v2NjxzkiEYDab7bfD6HjM/DL7t/j/vRJSxWtbk3IpIqoVkUd2W9xLHyQOa3SKBMnY0BDXe1tGI= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1701704579; c=relaxed/simple; bh=y9W+2JpmUj+2I8mDs4gBtAQXU3pAXQYvWAS6cYfKveQ=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=ZcgRwvHsN0Q9pnoW/dBqWyRQ+2VYQTZsppMnhfkj/FjUId3RAxA9fVQK49iAhWZhZf73ewJPRvQWKCJ3F7lO1DaS9JaM9QmTWjWqvFznvIg9TwBRR1LwHnIaP+NvIGEHo/H9Kjst2vZTHwaVrYQLL82crGKX95KgEaNN1iwGLbc= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=dinux.eu; s=default; h=Content-Transfer-Encoding:MIME-Version:Message-ID:Date:Subject: Cc:To:From:Sender:Reply-To:Content-Type:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=vE4OdzcDFaiYk5AZcBmn1ns+aRPLsMU7rcq4os0Ugc8=; b=A3/LdcQ4qd8EiE7SUSDTZzI03Y jgToLQP9/XKGbxsOUJx0XGf9xOVwQL+G/qD63N4T0dmYf6T/6kL5wnoBsXaxajQYRYKUT+lqgZm/7 jVtlDDAiUuUS1deX9FlScqq82CG3ullLiGcP/LWrOwtzazH9Bi7X1st6/eRS0FClifM6N+dyW4PY6 locIIZGRaCOynuvvsPc7IVEqHRjstgVlIirOAck8/lGwg/ySzDhnHZYEezZQ/PS085CJpIw8bf/hX pBGmzGTT2ZE9rLi1/jLGsxbWGGeBz1heAx85N/plFnDlmcnpndHyAb72pJMh/cq7ce5uxCfKA0XmJ nSxDbzvg==; Received: from [95.42.20.142] (port=37598 helo=kendros..) by server28.superhosting.bg with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96.2) (envelope-from <dimitar@dinux.eu>) id 1rAB5u-0007YM-18; Mon, 04 Dec 2023 17:42:52 +0200 From: Dimitar Dimitrov <dimitar@dinux.eu> To: newlib@sourceware.org Cc: Dimitar Dimitrov <dimitar@dinux.eu> Subject: [PATCH] pru: libm: Fix incorrect function name Date: Mon, 4 Dec 2023 17:42:42 +0200 Message-ID: <20231204154242.1391291-1-dimitar@dinux.eu> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - server28.superhosting.bg X-AntiAbuse: Original Domain - sourceware.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - dinux.eu X-Get-Message-Sender-Via: server28.superhosting.bg: authenticated_id: dimitar@dinux.eu X-Authenticated-Sender: server28.superhosting.bg: dimitar@dinux.eu X-Source: X-Source-Args: X-Source-Dir: X-Spam-Status: No, score=-11.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: newlib@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Newlib mailing list <newlib.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/newlib>, <mailto:newlib-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/newlib/> List-Post: <mailto:newlib@sourceware.org> List-Help: <mailto:newlib-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/newlib>, <mailto:newlib-request@sourceware.org?subject=subscribe> Errors-To: newlib-bounces+patchwork=sourceware.org@sourceware.org |
Series |
pru: libm: Fix incorrect function name
|
|
Commit Message
Dimitar Dimitrov
Dec. 4, 2023, 3:42 p.m. UTC
Upstream GCC changed -Wimplicit-function-declaration warning into an
error. The build break about missing fpclassifyf function prototype
exposed a bug in the PRU port of libm.
The fix is to use the fpclassify macro for both double and float types.
Signed-off-by: Dimitar Dimitrov <dimitar@dinux.eu>
---
newlib/libm/machine/pru/fpclassifyf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On Dec 4 17:42, Dimitar Dimitrov wrote: > Upstream GCC changed -Wimplicit-function-declaration warning into an > error. The build break about missing fpclassifyf function prototype > exposed a bug in the PRU port of libm. > > The fix is to use the fpclassify macro for both double and float types. > > Signed-off-by: Dimitar Dimitrov <dimitar@dinux.eu> > --- > newlib/libm/machine/pru/fpclassifyf.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/newlib/libm/machine/pru/fpclassifyf.c b/newlib/libm/machine/pru/fpclassifyf.c > index f4dd201d9..6d82ea777 100644 > --- a/newlib/libm/machine/pru/fpclassifyf.c > +++ b/newlib/libm/machine/pru/fpclassifyf.c > @@ -32,5 +32,5 @@ > by TI ABI. */ > int __pruabi_fpclassifyf(float a) > { > - return fpclassifyf(a); > + return fpclassify(a); > } > -- > 2.43.0 Pushed. Thanks, Corinna
diff --git a/newlib/libm/machine/pru/fpclassifyf.c b/newlib/libm/machine/pru/fpclassifyf.c index f4dd201d9..6d82ea777 100644 --- a/newlib/libm/machine/pru/fpclassifyf.c +++ b/newlib/libm/machine/pru/fpclassifyf.c @@ -32,5 +32,5 @@ by TI ABI. */ int __pruabi_fpclassifyf(float a) { - return fpclassifyf(a); + return fpclassify(a); }