public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc] nearbyint: Don't define alias when used in IFUNC [BZ #31759]
@ 2024-05-20 12:21 H.J. Lu
0 siblings, 0 replies; only message in thread
From: H.J. Lu @ 2024-05-20 12:21 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=4e21cb95e206dddf049dec12f7d4e25a79d60e05
commit 4e21cb95e206dddf049dec12f7d4e25a79d60e05
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Sun May 19 16:36:01 2024 -0700
nearbyint: Don't define alias when used in IFUNC [BZ #31759]
Fix BZ #31759 by not defining nearbyint aliases when used in IFUNC.
Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
Reviewed-by: Noah Goldstein <goldstein.w.n@gmail.com>
Diff:
---
sysdeps/ieee754/dbl-64/s_nearbyint.c | 2 ++
sysdeps/ieee754/flt-32/s_nearbyintf.c | 2 ++
2 files changed, 4 insertions(+)
diff --git a/sysdeps/ieee754/dbl-64/s_nearbyint.c b/sysdeps/ieee754/dbl-64/s_nearbyint.c
index 08fe517b83..606002d680 100644
--- a/sysdeps/ieee754/dbl-64/s_nearbyint.c
+++ b/sysdeps/ieee754/dbl-64/s_nearbyint.c
@@ -72,4 +72,6 @@ __nearbyint (double x)
return t;
#endif /* ! USE_NEARBYINT_BUILTIN */
}
+#ifndef __nearbyint
libm_alias_double (__nearbyint, nearbyint)
+#endif
diff --git a/sysdeps/ieee754/flt-32/s_nearbyintf.c b/sysdeps/ieee754/flt-32/s_nearbyintf.c
index b270749f4c..5dd0e8f8af 100644
--- a/sysdeps/ieee754/flt-32/s_nearbyintf.c
+++ b/sysdeps/ieee754/flt-32/s_nearbyintf.c
@@ -68,4 +68,6 @@ __nearbyintf (float x)
return t;
#endif /* ! USE_NEARBYINT_BUILTIN */
}
+#ifndef __nearbyintf
libm_alias_float (__nearbyint, nearbyint)
+#endif
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-05-20 12:21 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-20 12:21 [glibc] nearbyint: Don't define alias when used in IFUNC [BZ #31759] H.J. Lu
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).