public inbox for newlib-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin/main] pru: libm: Fix incorrect function name
@ 2023-12-04 16:38 Corinna Vinschen
  0 siblings, 0 replies; only message in thread
From: Corinna Vinschen @ 2023-12-04 16:38 UTC (permalink / raw)
  To: newlib-cvs

https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=14d786873c7db25d37b74d8c47ad8f3cbbe1883b

commit 14d786873c7db25d37b74d8c47ad8f3cbbe1883b
Author:     Dimitar Dimitrov <dimitar@dinux.eu>
AuthorDate: Mon Dec 4 17:42:42 2023 +0200
Commit:     Corinna Vinschen <corinna@vinschen.de>
CommitDate: Mon Dec 4 17:01:05 2023 +0100

    pru: libm: Fix incorrect function name
    
    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>

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/pru/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);
 }

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-12-04 16:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-04 16:38 [newlib-cygwin/main] pru: libm: Fix incorrect function name Corinna Vinschen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).