Re: regression in tgamma?

Corinna Vinschen via Newlib <[email protected]>
Newsgroups gmane.comp.lib.newlib
Message-ID <[email protected]>
On Dec 18 09:54, Paul Zimmermann wrote:
>        Dear Corinna,
> 
> sorry, here is the patch generated by "git format-patch".

Thanks, I pushed the patch.


Corinna


> 
> Paul
> 
> >From bb94a62d68012fc38a0b6b14cedb806ff86b5c29 Mon Sep 17 00:00:00 2001
> From: Paul Zimmermann <[email protected]>
> Date: Fri, 18 Dec 2020 09:52:40 +0100
> Subject: [PATCH] fixes to make compilation succeeds
> 
> ---
>  newlib/libm/math/w_tgamma.c  | 1 +
>  newlib/libm/math/wf_tgamma.c | 2 +-
>  2 files changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/newlib/libm/math/w_tgamma.c b/newlib/libm/math/w_tgamma.c
> index 0f90dd4c6..52d5d71d3 100644
> --- a/newlib/libm/math/w_tgamma.c
> +++ b/newlib/libm/math/w_tgamma.c
> @@ -16,6 +16,7 @@
>   */
>  
>  #include "fdlibm.h"
> +#include <errno.h>
>  
>  #ifndef _DOUBLE_IS_32BITS
>  
> diff --git a/newlib/libm/math/wf_tgamma.c b/newlib/libm/math/wf_tgamma.c
> index 80aacf757..504cb4c29 100644
> --- a/newlib/libm/math/wf_tgamma.c
> +++ b/newlib/libm/math/wf_tgamma.c
> @@ -15,6 +15,7 @@
>  
>  #include "math.h"
>  #include "fdlibm.h"
> +#include <errno.h>
>  
>  #ifdef __STDC__
>  	float tgammaf(float x)
> @@ -34,7 +35,6 @@
>  	    errno = EDOM;
>  	  else if (finite(x))
>  	    errno = ERANGE;
> -	}
>  	return y;
>  #endif
>  }
> -- 
> 2.29.2
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.