public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc] Don't provide XXXf128_do_not_use aliases [BZ #31757]
@ 2024-05-22 13:13 H.J. Lu
0 siblings, 0 replies; only message in thread
From: H.J. Lu @ 2024-05-22 13:13 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=43d41ae6d74441dd5d21045324ff7391e7b0f545
commit 43d41ae6d74441dd5d21045324ff7391e7b0f545
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Mon May 20 05:25:34 2024 -0700
Don't provide XXXf128_do_not_use aliases [BZ #31757]
Don't provide __nexttowardf128_do_not_use, nexttowardf128_do_not_use,
finitef128_do_not_use, isinff128_do_not_use and isnanf128_do_not_use.
This fixes BZ #31757.
Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diff:
---
sysdeps/ieee754/float128/s_isnanf128.c | 2 ++
sysdeps/ieee754/ldbl-128/s_finitel.c | 2 ++
sysdeps/ieee754/ldbl-128/s_isinfl.c | 2 ++
sysdeps/ieee754/ldbl-128/s_nextafterl.c | 4 ++++
4 files changed, 10 insertions(+)
diff --git a/sysdeps/ieee754/float128/s_isnanf128.c b/sysdeps/ieee754/float128/s_isnanf128.c
index b73a4e80d7..291d4427f5 100644
--- a/sysdeps/ieee754/float128/s_isnanf128.c
+++ b/sysdeps/ieee754/float128/s_isnanf128.c
@@ -16,7 +16,9 @@ hidden_ver (__isnanf128_impl, __isnanf128)
#else
strong_alias (__isnanf128_impl, __isnanf128)
#endif
+#ifndef isnanl
_weak_alias (__isnanf128_impl, isnanl)
+#endif
versioned_symbol (libc, __isnanf128_impl, __isnanf128, GLIBC_2_34);
#if (SHLIB_COMPAT (libc, FLOAT128_VERSION_M, GLIBC_2_34))
strong_alias (__isnanf128_impl, __isnanf128_alias)
diff --git a/sysdeps/ieee754/ldbl-128/s_finitel.c b/sysdeps/ieee754/ldbl-128/s_finitel.c
index bfdd88fbbb..f1fff0ced2 100644
--- a/sysdeps/ieee754/ldbl-128/s_finitel.c
+++ b/sysdeps/ieee754/ldbl-128/s_finitel.c
@@ -32,4 +32,6 @@ int __finitel(_Float128 x)
-0x7fff000000000000LL)>>63);
}
mathx_hidden_def (__finitel)
+#ifndef finitel
weak_alias (__finitel, finitel)
+#endif
diff --git a/sysdeps/ieee754/ldbl-128/s_isinfl.c b/sysdeps/ieee754/ldbl-128/s_isinfl.c
index baa9a98e80..a0fa0ba659 100644
--- a/sysdeps/ieee754/ldbl-128/s_isinfl.c
+++ b/sysdeps/ieee754/ldbl-128/s_isinfl.c
@@ -24,4 +24,6 @@ __isinfl (_Float128 x)
return ~(lx >> 63) & (hx >> 62);
}
mathx_hidden_def (__isinfl)
+#ifndef isinfl
weak_alias (__isinfl, isinfl)
+#endif
diff --git a/sysdeps/ieee754/ldbl-128/s_nextafterl.c b/sysdeps/ieee754/ldbl-128/s_nextafterl.c
index 90e71e3907..f3f3b138dd 100644
--- a/sysdeps/ieee754/ldbl-128/s_nextafterl.c
+++ b/sysdeps/ieee754/ldbl-128/s_nextafterl.c
@@ -83,5 +83,9 @@ _Float128 __nextafterl(_Float128 x, _Float128 y)
return x;
}
libm_alias_ldouble (__nextafter, nextafter)
+#ifndef __nexttowardl
strong_alias (__nextafterl, __nexttowardl)
+#endif
+#ifndef nexttowardl
weak_alias (__nextafterl, nexttowardl)
+#endif
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-05-22 13:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-22 13:13 [glibc] Don't provide XXXf128_do_not_use aliases [BZ #31757] 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).