This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: PowerPC's math_ldbl.h
- From: Adhemerval Zanella <azanella at linux dot vnet dot ibm dot com>
- To: libc-alpha at sourceware dot org, "Joseph S. Myers" <joseph at codesourcery dot com>
- Date: Tue, 19 Mar 2013 14:51:08 -0300
- Subject: Re: PowerPC's math_ldbl.h
- References: <87ehg9akpn dot fsf at kepler dot schwinge dot homeip dot net> <512626E1 dot 4090801 at linux dot vnet dot ibm dot com> <5126DF54 dot 4020806 at linux dot vnet dot ibm dot com> <Pine dot LNX dot 4 dot 64 dot 1302221545410 dot 6146 at digraph dot polyomino dot org dot uk> <5127C2DD dot 4090406 at linux dot vnet dot ibm dot com> <Pine dot LNX dot 4 dot 64 dot 1302222119210 dot 10719 at digraph dot polyomino dot org dot uk> <512835E4 dot 70108 at linux dot vnet dot ibm dot com> <Pine dot LNX dot 4 dot 64 dot 1303160028510 dot 6194 at digraph dot polyomino dot org dot uk> <5143DE75 dot 9040605 at linux dot vnet dot ibm dot com> <5146473D dot 5020404 at linux dot vnet dot ibm dot com>
Ping.
On 17-03-2013 19:44, Adhemerval Zanella wrote:
> On 03/15/2013 11:52 PM, Adhemerval Zanella wrote:
>
> This patch fixes the ABI issue. I though about make a cleanup of the multiple w_sqrt
> version on PPC, but I add in a TODO list. Ok to apply?
>
> --
>
> 2013-03-17 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
>
> * sysdeps/powerpc/fpu/w_sqrt.c (compat_symbol): Add sqrtl compat symbol.
>
> --
>
> diff --git a/sysdeps/powerpc/fpu/w_sqrt.c b/sysdeps/powerpc/fpu/w_sqrt.c
> index 2488ad9..70f28dd 100644
> --- a/sysdeps/powerpc/fpu/w_sqrt.c
> +++ b/sysdeps/powerpc/fpu/w_sqrt.c
> @@ -19,6 +19,7 @@
> #include <math.h>
> #include <math_private.h>
> #include <fenv_libc.h>
> +#include <math_ldbl_opt.h>
>
> double
> __sqrt (double x) /* wrapper sqrt */
> @@ -42,3 +43,6 @@ weak_alias (__sqrt, sqrt)
> #ifdef NO_LONG_DOUBLE
> strong_alias (__sqrt, __sqrtl) weak_alias (__sqrt, sqrtl)
> #endif
> +#if LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)
> +compat_symbol (libm, __sqrt, sqrtl, GLIBC_2_0);
> +#endif