From 220622dde5704c95a100c2792a280f18f3deba73 Mon Sep 17 00:00:00 2001 From: Wilco Dijkstra Date: Tue, 16 Jul 2019 12:17:22 -0300 Subject: Add libm_alias_finite for _finite symbols This patch adds a new macro, libm_alias_finite, to define all _finite symbol. It sets all _finite symbol as compat symbol based on its first version (obtained from the definition at built generated first-versions.h). The f128_finite symbols were introduced in GLIBC 2.26 and so need special treatment in code that is shared between long double and float128. It is done by adding a list, similar to internal symbol redifinition, on sysdeps/ieee754/float128/float128_private.h. Alpha also needs some tricky changes to ensure we still emit 2 compat symbols for sqrt(f). Passes buildmanyglibc. Co-authored-by: Adhemerval Zanella Reviewed-by: Siddhesh Poyarekar --- sysdeps/ieee754/dbl-64/e_j1.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sysdeps/ieee754/dbl-64/e_j1.c') diff --git a/sysdeps/ieee754/dbl-64/e_j1.c b/sysdeps/ieee754/dbl-64/e_j1.c index 734f3ca64a..8757bd5750 100644 --- a/sysdeps/ieee754/dbl-64/e_j1.c +++ b/sysdeps/ieee754/dbl-64/e_j1.c @@ -64,6 +64,7 @@ #include #include #include +#include static double pone (double), qone (double); @@ -147,7 +148,7 @@ __ieee754_j1 (double x) s = s1 + z2 * s2 + z4 * s3; return (x * 0.5 + r / s); } -strong_alias (__ieee754_j1, __j1_finite) +libm_alias_finite (__ieee754_j1, __j1) static const double U0[5] = { -1.96057090646238940668e-01, /* 0xBFC91866, 0x143CBC8A */ @@ -230,7 +231,7 @@ __ieee754_y1 (double x) v = v1 + z2 * v2 + z4 * v3; return (x * (u / v) + tpi * (__ieee754_j1 (x) * __ieee754_log (x) - one / x)); } -strong_alias (__ieee754_y1, __y1_finite) +libm_alias_finite (__ieee754_y1, __y1) /* For x >= 8, the asymptotic expansions of pone is * 1 + 15/128 s^2 - 4725/2^15 s^4 - ..., where s = 1/x. -- cgit v1.2.3