00db10
Combination of the following two commits:
00db10
00db10
From 45045c44fabde9152ab1a0b4ed06419a3621f535 Mon Sep 17 00:00:00 2001
00db10
From: Adhemerval Zanella <azanella@linux.vnet.ibm.com>
00db10
Date: Thu, 21 Mar 2013 14:15:45 -0300
00db10
Subject: [PATCH 20/42] PowerPC: fix sqrtl ABI issue
00db10
00db10
This patch fixes a sqrtl ABI issue when building for powerpc64.
00db10
(cherry picked from commit b5784d95bb94eda59b08aca735406908e209f638)
00db10
00db10
From dad835a11f370afd2dae4bac554fa64fac5a8c6e Mon Sep 17 00:00:00 2001
00db10
From: Adhemerval Zanella <azanella@linux.vnet.ibm.com>
00db10
Date: Tue, 26 Mar 2013 10:01:57 -0300
00db10
Subject: [PATCH 21/42] PowerPC: fix libm ABI issue for llroundl (cherry
00db10
 picked from commit
00db10
 fce14d4e9c6e08ad8c825fe88d8cbdac5c739565)
00db10
00db10
diff -pruN glibc-2.17-c758a686/sysdeps/powerpc/fpu/s_llround.c glibc-2.17-c758a686/sysdeps/powerpc/fpu/s_llround.c
00db10
--- glibc-2.17-c758a686/sysdeps/powerpc/fpu/s_llround.c	2012-12-25 08:32:13.000000000 +0530
00db10
+++ glibc-2.17-c758a686/sysdeps/powerpc/fpu/s_llround.c	2013-08-06 17:45:56.719534470 +0530
00db10
@@ -17,6 +17,7 @@
00db10
    <http://www.gnu.org/licenses/>.  */
00db10
 
00db10
 #include <math.h>
00db10
+#include <math_ldbl_opt.h>
00db10
 
00db10
 /* I think that what this routine is supposed to do is round a value
00db10
    to the nearest integer, with values exactly on the boundary rounded
00db10
@@ -47,3 +48,6 @@ weak_alias (__llround, llround)
00db10
 strong_alias (__llround, __llroundl)
00db10
 weak_alias (__llround, llroundl)
00db10
 #endif
00db10
+#if LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)
00db10
+compat_symbol (libm, __llround, llroundl, GLIBC_2_1);
00db10
+#endif
00db10
diff -pruN glibc-2.17-c758a686/sysdeps/powerpc/fpu/w_sqrt.c glibc-2.17-c758a686/sysdeps/powerpc/fpu/w_sqrt.c
00db10
--- glibc-2.17-c758a686/sysdeps/powerpc/fpu/w_sqrt.c	2012-12-25 08:32:13.000000000 +0530
00db10
+++ glibc-2.17-c758a686/sysdeps/powerpc/fpu/w_sqrt.c	2013-08-06 17:45:53.459534613 +0530
00db10
@@ -19,6 +19,7 @@
00db10
 #include <math.h>
00db10
 #include <math_private.h>
00db10
 #include <fenv_libc.h>
00db10
+#include <math_ldbl_opt.h>
00db10
 
00db10
 double
00db10
 __sqrt (double x)		/* wrapper sqrt */
00db10
@@ -42,3 +43,6 @@ weak_alias (__sqrt, sqrt)
00db10
 #ifdef NO_LONG_DOUBLE
00db10
   strong_alias (__sqrt, __sqrtl) weak_alias (__sqrt, sqrtl)
00db10
 #endif
00db10
+#if LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)
00db10
+compat_symbol (libm, __sqrt, sqrtl, GLIBC_2_0);
00db10
+#endif