From: H.J. Lu Date: Sun, 19 May 2024 23:36:01 +0000 (-0700) Subject: nearbyint: Don't define alias when used in IFUNC [BZ #31759] X-Git-Tag: glibc-2.40~201 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4e21cb95e206dddf049dec12f7d4e25a79d60e05;p=thirdparty%2Fglibc.git 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 Reviewed-by: Noah Goldstein --- 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