]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
PowerPC: fix sqrtl ABI issue
authorAdhemerval Zanella <azanella@linux.vnet.ibm.com>
Thu, 21 Mar 2013 17:15:45 +0000 (14:15 -0300)
committerAdhemerval Zanella <azanella@linux.vnet.ibm.com>
Thu, 21 Mar 2013 17:15:45 +0000 (14:15 -0300)
This patch fixes a sqrtl ABI issue when building for powerpc64.

ChangeLog
sysdeps/powerpc/fpu/w_sqrt.c

index dadbd21dbcabb4e48be6ce809f804a24bfb795fb..9f4aba18321c5cac0a306a61aec9bea66b76f1eb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-03-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
+
+       * sysdeps/powerpc/fpu/w_sqrt.c (compat_symbol): Add sqrtl compat
+       symbol.
+
 2013-03-21  Thomas Schwinge  <thomas@codesourcery.com>
 
        * math/gen-libm-test.pl (parse_args, special_functions): Properly
index 2488ad9b97b11be2db2cefb93287921c0c6cd954..70f28dd4df067cda90a965647c61e9cc9a70a7fe 100644 (file)
@@ -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