summaryrefslogtreecommitdiff
path: root/sysdeps/powerpc/fpu
diff options
context:
space:
mode:
authorAdhemerval Zanella <azanella@linux.vnet.ibm.com>2013-03-21 14:15:45 -0300
committerAdhemerval Zanella <azanella@linux.vnet.ibm.com>2013-03-21 14:15:45 -0300
commitb5784d95bb94eda59b08aca735406908e209f638 (patch)
tree84758f82b5244f4b5824f5880fdbfb500e9b188a /sysdeps/powerpc/fpu
parentbdef0be784c57c6e01a64933a167f29b2bd0cd6e (diff)
downloadglibc-b5784d95bb94eda59b08aca735406908e209f638.tar.gz
PowerPC: fix sqrtl ABI issue
This patch fixes a sqrtl ABI issue when building for powerpc64.
Diffstat (limited to 'sysdeps/powerpc/fpu')
-rw-r--r--sysdeps/powerpc/fpu/w_sqrt.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sysdeps/powerpc/fpu/w_sqrt.c b/sysdeps/powerpc/fpu/w_sqrt.c
index 2488ad9b97..70f28dd4df 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