]> sourceware.org Git - glibc.git/commitdiff
s390x: Update math: redirect roundeven function
authorStefan Liebler <stli@linux.ibm.com>
Mon, 28 Jun 2021 11:01:07 +0000 (13:01 +0200)
committerStefan Liebler <stli@linux.ibm.com>
Tue, 29 Jun 2021 07:07:14 +0000 (09:07 +0200)
After recent commit
447954a206837b5f153869cfeeeab44631c3fac9
"math: redirect roundeven function", building on
s390x fails with:
Error: symbol `__roundevenl' is already defined

Similar to aarch64/riscv fix, this patch redirects target
specific functions for s390x:
commit 3213ed770cbc5821920d16caa93c85e92dd7b9f6
"Update math: redirect roundeven function"

sysdeps/s390/fpu/s_roundeven.c
sysdeps/s390/fpu/s_roundevenf.c
sysdeps/s390/fpu/s_roundevenl.c

index 40b07e054bbe7bd0727928b9c397b86f37ceeda5..0773adfed0ab647fefbe56903df8a0a7d74949db 100644 (file)
@@ -18,6 +18,7 @@
    <https://www.gnu.org/licenses/>.  */
 
 #ifdef HAVE_S390_MIN_Z196_ZARCH_ASM_SUPPORT
+# define NO_MATH_REDIRECT
 # include <math.h>
 # include <libm-alias-double.h>
 
@@ -31,7 +32,6 @@ __roundeven (double x)
   __asm__ ("fidbra %0,4,%1,4" : "=f" (y) : "f" (x));
   return y;
 }
-hidden_def (__roundeven)
 libm_alias_double (__roundeven, roundeven)
 
 #else
index d2fbf3d2b6c09daf12d6c70ec183ae0c588234f5..289785bc4a40b407205812cac693bb233bf34f23 100644 (file)
@@ -18,6 +18,7 @@
    <https://www.gnu.org/licenses/>.  */
 
 #ifdef HAVE_S390_MIN_Z196_ZARCH_ASM_SUPPORT
+# define NO_MATH_REDIRECT
 # include <math.h>
 # include <libm-alias-float.h>
 
index 29ab7a86165cf0157e635d6df3f8d15cc000c2e7..94b6459ab463f7054abd718339381be5a176fa21 100644 (file)
@@ -18,6 +18,7 @@
    <https://www.gnu.org/licenses/>.  */
 
 #ifdef HAVE_S390_MIN_Z196_ZARCH_ASM_SUPPORT
+# define NO_MATH_REDIRECT
 # include <math.h>
 # include <math_private.h>
 # include <libm-alias-ldouble.h>
This page took 0.044339 seconds and 5 git commands to generate.