From: Adhemerval Zanella Date: Thu, 21 Mar 2013 17:15:45 +0000 (-0300) Subject: PowerPC: fix sqrtl ABI issue X-Git-Tag: glibc-2.18~479 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b5784d95bb94eda59b08aca735406908e209f638;p=thirdparty%2Fglibc.git PowerPC: fix sqrtl ABI issue This patch fixes a sqrtl ABI issue when building for powerpc64. --- diff --git a/ChangeLog b/ChangeLog index dadbd21dbca..9f4aba18321 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2013-03-21 Adhemerval Zanella + + * sysdeps/powerpc/fpu/w_sqrt.c (compat_symbol): Add sqrtl compat + symbol. + 2013-03-21 Thomas Schwinge * math/gen-libm-test.pl (parse_args, special_functions): Properly diff --git a/sysdeps/powerpc/fpu/w_sqrt.c b/sysdeps/powerpc/fpu/w_sqrt.c index 2488ad9b97b..70f28dd4df0 100644 --- a/sysdeps/powerpc/fpu/w_sqrt.c +++ b/sysdeps/powerpc/fpu/w_sqrt.c @@ -19,6 +19,7 @@ #include #include #include +#include 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