Re: [PATCH] pru: libm: Fix incorrect function name

Corinna Vinschen <[email protected]>
Newsgroups gmane.comp.lib.newlib
Message-ID <[email protected]>
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 <[email protected]>
> ---
>  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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.