From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2155) id B30413858C5E; Mon, 4 Dec 2023 16:38:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B30413858C5E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1701707893; bh=d2qI/7RXB0kjWd1/tJ6EYtmNEDs0X0PqrqipCv6CzS8=; h=From:To:Subject:Date:From; b=azH+/bIsVEFh3rHzwyBm9ZDlXdH5nUS6f14yJjgdU+MkdzuzWC/0wxyDQPcNBPsGs KoCtD+CGAwxN58tboEYz9cLHw5/qmQoSvc2Wa9Lk8oc1PradVIWlPB3D9pVEnPWlaI valRWc0QDf0qcf9fDO0j3OlGZ0yqj+MjHYHrzM44= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Corinna Vinschen To: newlib-cvs@sourceware.org Subject: [newlib-cygwin/main] pru: libm: Fix incorrect function name X-Act-Checkin: newlib-cygwin X-Git-Author: Dimitar Dimitrov X-Git-Refname: refs/heads/main X-Git-Oldrev: 04798b7bb69571452d2cfc7e0b052a9bbd3b619d X-Git-Newrev: 14d786873c7db25d37b74d8c47ad8f3cbbe1883b Message-Id: <20231204163813.B30413858C5E@sourceware.org> Date: Mon, 4 Dec 2023 16:38:13 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dnewlib-cygwin.git;h=3D14d786873c7= db25d37b74d8c47ad8f3cbbe1883b commit 14d786873c7db25d37b74d8c47ad8f3cbbe1883b Author: Dimitar Dimitrov AuthorDate: Mon Dec 4 17:42:42 2023 +0200 Commit: Corinna Vinschen CommitDate: Mon Dec 4 17:01:05 2023 +0100 pru: libm: Fix incorrect function name =20 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. =20 The fix is to use the fpclassify macro for both double and float types. =20 Signed-off-by: Dimitar Dimitrov Diff: --- 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/pr= u/fpclassifyf.c index f4dd201d9729..6d82ea77773e 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); }