]> sourceware.org Git - newlib-cygwin.git/commitdiff
pru: libm: Fix incorrect function name
authorDimitar Dimitrov <dimitar@dinux.eu>
Mon, 4 Dec 2023 15:42:42 +0000 (17:42 +0200)
committerCorinna Vinschen <corinna@vinschen.de>
Mon, 4 Dec 2023 16:01:05 +0000 (17:01 +0100)
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

index f4dd201d972938c75ad44a33e718a6b768e3848b..6d82ea77773edb07c05cf49980de4aff3423f1b2 100644 (file)
@@ -32,5 +32,5 @@
    by TI ABI.  */
 int __pruabi_fpclassifyf(float a)
 {
-  return fpclassifyf(a);
+  return fpclassify(a);
 }
This page took 0.031967 seconds and 5 git commands to generate.