diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2024-05-20 05:25:34 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2024-05-22 06:12:17 -0700 |
commit | 43d41ae6d74441dd5d21045324ff7391e7b0f545 (patch) | |
tree | ee1e4fdd45aa7bfc9cd5bfad5dce82253b206f2d | |
parent | a34f76edbda8a0b143111e670ca33c97623bfe56 (diff) | |
download | glibc-43d41ae6d74441dd5d21045324ff7391e7b0f545.tar.gz glibc-43d41ae6d74441dd5d21045324ff7391e7b0f545.tar.xz glibc-43d41ae6d74441dd5d21045324ff7391e7b0f545.zip |
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>
-rw-r--r-- | sysdeps/ieee754/float128/s_isnanf128.c | 2 | ||||
-rw-r--r-- | sysdeps/ieee754/ldbl-128/s_finitel.c | 2 | ||||
-rw-r--r-- | sysdeps/ieee754/ldbl-128/s_isinfl.c | 2 | ||||
-rw-r--r-- | sysdeps/ieee754/ldbl-128/s_nextafterl.c | 4 |
4 files changed, 10 insertions, 0 deletions
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 |