about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2024-05-22 11:49:10 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2024-05-23 09:36:08 -0300
commitd8ebde14fbf713ef1d91e4250ad8aa97c7df8128 (patch)
tree7476a8ebd91b9ec4f1c3236f5a60a3a84247f886
parent5fededd8251b9f5ccd7f893123417205447b95f1 (diff)
downloadglibc-d8ebde14fbf713ef1d91e4250ad8aa97c7df8128.tar.gz
glibc-d8ebde14fbf713ef1d91e4250ad8aa97c7df8128.tar.xz
glibc-d8ebde14fbf713ef1d91e4250ad8aa97c7df8128.zip
powerpc: Remove duplicated llrintf and llrintf32 from libm.a (BZ 31787)
Both the generic and POWER6 versions provide definitions of the
symbol, which are already provided by the ifunc resolver.

Checked on powerpc-linux-gnu-power4.
Reviewed-by: H.J. Lu <hjl.tools@gmail.com>
-rw-r--r--sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.c4
-rw-r--r--sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.c4
2 files changed, 8 insertions, 0 deletions
diff --git a/sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.c b/sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.c
index 5b1a5a8cf0..3c279ddd1a 100644
--- a/sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.c
+++ b/sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.c
@@ -1,2 +1,6 @@
+#include <libm-alias-float.h>
+
 #define __llrintf __llrintf_power6
+#undef libm_alias_float
+#define libm_alias_float(a, b)
 #include <sysdeps/powerpc/powerpc32/fpu/s_llrintf.c>
diff --git a/sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.c b/sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.c
index 061962b84d..bce8f4564f 100644
--- a/sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.c
+++ b/sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.c
@@ -1,2 +1,6 @@
+#include <libm-alias-float.h>
+
 #define __llrintf __llrintf_ppc32
+#undef libm_alias_float
+#define libm_alias_float(a, b)
 #include <sysdeps/powerpc/powerpc32/fpu/s_llrintf.c>