This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[COMMITTED PATCH] Define __sqrtl_finite on sparc 32-bit with correct symbol version.


	* sysdeps/sparc/sparc32/Versions (GLIBC_2.23): Add entry for __sqrtl_finite.
	* sysdeps/sparc/sparc32/fpu/e_sqrtl.c (__sqrtl_finite): Define instead using
	versioned_symbol.
	* sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Fix ordering of entries.
---
 ChangeLog                                          | 5 +++++
 sysdeps/sparc/sparc32/Versions                     | 5 +++++
 sysdeps/sparc/sparc32/fpu/e_sqrtl.c                | 4 +++-
 sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist | 2 +-
 4 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index d338acc..42d01d9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2016-01-25  David S. Miller  <davem@davemloft.net>
 
+	* sysdeps/sparc/sparc32/Versions (GLIBC_2.23): Add entry for __sqrtl_finite.
+	* sysdeps/sparc/sparc32/fpu/e_sqrtl.c (__sqrtl_finite): Define instead using
+	versioned_symbol.
+	* sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Fix ordering of entries.
+
 	* sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Move
 	__sqrtl_finite to GLIBC_2.23
 
diff --git a/sysdeps/sparc/sparc32/Versions b/sysdeps/sparc/sparc32/Versions
index aa36082..6d3bfe8 100644
--- a/sysdeps/sparc/sparc32/Versions
+++ b/sysdeps/sparc/sparc32/Versions
@@ -3,3 +3,8 @@ libc {
     .div; .mul; .rem; .udiv; .umul; .urem;
   }
 }
+libm {
+  GLIBC_2.23 {
+    __sqrtl_finite;
+  }
+}
diff --git a/sysdeps/sparc/sparc32/fpu/e_sqrtl.c b/sysdeps/sparc/sparc32/fpu/e_sqrtl.c
index 46ad861..b0ce44a 100644
--- a/sysdeps/sparc/sparc32/fpu/e_sqrtl.c
+++ b/sysdeps/sparc/sparc32/fpu/e_sqrtl.c
@@ -25,4 +25,6 @@ __ieee754_sqrtl (long double x)
 {
   return _Q_sqrt (x);
 }
-strong_alias (__ieee754_sqrtl, __sqrtl_finite)
+
+#include <shlib-compat.h>
+versioned_symbol (libm, __ieee754_sqrtl, __sqrtl_finite, GLIBC_2_23);
diff --git a/sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist b/sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist
index 0a54f31..185ab09 100644
--- a/sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist
+++ b/sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist
@@ -389,7 +389,6 @@ GLIBC_2.18 GLIBC_2.18 A
 GLIBC_2.18 __issignaling F
 GLIBC_2.18 __issignalingf F
 GLIBC_2.18 __issignalingl F
-GLIBC_2.23 __sqrtl_finite F
 GLIBC_2.2 GLIBC_2.2 A
 GLIBC_2.2 feclearexcept F
 GLIBC_2.2 fedisableexcept F
@@ -403,6 +402,7 @@ GLIBC_2.2 fesetexceptflag F
 GLIBC_2.2 feupdateenv F
 GLIBC_2.23 GLIBC_2.23 A
 GLIBC_2.23 __signgam D 0x4
+GLIBC_2.23 __sqrtl_finite F
 GLIBC_2.23 lgamma F
 GLIBC_2.23 lgammaf F
 GLIBC_2.23 lgammal F
-- 
2.1.2.532.g19b5d50


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]