public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc] powerpc: Remove duplicated llrintf and llrintf32 from libm.a (BZ 31787)
@ 2024-05-23 12:36 Adhemerval Zanella
  0 siblings, 0 replies; only message in thread
From: Adhemerval Zanella @ 2024-05-23 12:36 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=d8ebde14fbf713ef1d91e4250ad8aa97c7df8128

commit d8ebde14fbf713ef1d91e4250ad8aa97c7df8128
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Wed May 22 11:49:10 2024 -0300

    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>

Diff:
---
 sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.c | 4 ++++
 sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.c  | 4 ++++
 2 files changed, 8 insertions(+)

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>

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-05-23 12:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-23 12:36 [glibc] powerpc: Remove duplicated llrintf and llrintf32 from libm.a (BZ 31787) Adhemerval Zanella

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).