diff options
author | Wilco Dijkstra <Wilco.Dijkstra@arm.com> | 2019-07-16 12:17:22 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2020-01-03 10:02:04 -0300 |
commit | 220622dde5704c95a100c2792a280f18f3deba73 (patch) | |
tree | fbf0df37c2671a9bc21a200bd2f587fc5e4cbe2b /sysdeps/powerpc/powerpc32 | |
parent | cf4dfd461725b6dbe6f27fbd16913f2c6c5cf7c5 (diff) | |
download | glibc-220622dde5704c95a100c2792a280f18f3deba73.tar.gz glibc-220622dde5704c95a100c2792a280f18f3deba73.tar.xz glibc-220622dde5704c95a100c2792a280f18f3deba73.zip |
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 <fn>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 <adhemerval.zanella@linaro.org> Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
Diffstat (limited to 'sysdeps/powerpc/powerpc32')
6 files changed, 4 insertions, 16 deletions
diff --git a/sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-power7.c b/sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-power7.c index 9854219e07..4d5db60a18 100644 --- a/sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-power7.c +++ b/sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-power7.c @@ -18,9 +18,6 @@ #include <math.h> -#undef strong_alias -#define strong_alias(a, b) - #define __ieee754_hypot __ieee754_hypot_power7 #include <sysdeps/powerpc/fpu/e_hypot.c> diff --git a/sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-ppc32.c b/sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-ppc32.c index 5843ec1787..4df81e4aa7 100644 --- a/sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-ppc32.c +++ b/sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-ppc32.c @@ -18,9 +18,6 @@ #include <math.h> -#undef strong_alias -#define strong_alias(a, b) - #define __ieee754_hypot __ieee754_hypot_ppc32 #include <sysdeps/powerpc/fpu/e_hypot.c> diff --git a/sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c b/sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c index 9bf7fb12d9..a6c9b0658b 100644 --- a/sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c +++ b/sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c @@ -19,7 +19,7 @@ #include <math.h> #include <math_private.h> #include <math_ldbl_opt.h> -#include <shlib-compat.h> +#include <libm-alias-finite.h> #include "init-arch.h" extern __typeof (__ieee754_hypot) __ieee754_hypot_ppc32 attribute_hidden; @@ -30,4 +30,4 @@ libc_ifunc (__ieee754_hypot, ? __ieee754_hypot_power7 : __ieee754_hypot_ppc32); -strong_alias (__ieee754_hypot, __hypot_finite) +libm_alias_finite (__ieee754_hypot, __hypot) diff --git a/sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-power7.c b/sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-power7.c index d45b17cb4e..fa3efaeffc 100644 --- a/sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-power7.c +++ b/sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-power7.c @@ -18,9 +18,6 @@ #include <math.h> -#undef strong_alias -#define strong_alias(a, b) - #define __ieee754_hypotf __ieee754_hypotf_power7 #include <sysdeps/powerpc/fpu/e_hypotf.c> diff --git a/sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-ppc32.c b/sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-ppc32.c index 6d81381638..ff0c8084ca 100644 --- a/sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-ppc32.c +++ b/sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-ppc32.c @@ -18,9 +18,6 @@ #include <math.h> -#undef strong_alias -#define strong_alias(a, b) - #define __ieee754_hypotf __ieee754_hypotf_ppc32 #include <sysdeps/ieee754/flt-32/e_hypotf.c> diff --git a/sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c b/sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c index 48be6ff54f..130b51f337 100644 --- a/sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c +++ b/sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c @@ -19,7 +19,7 @@ #include <math.h> #include <math_private.h> #include <math_ldbl_opt.h> -#include <shlib-compat.h> +#include <libm-alias-finite.h> #include "init-arch.h" extern __typeof (__ieee754_hypotf) __ieee754_hypotf_ppc32 attribute_hidden; @@ -30,4 +30,4 @@ libc_ifunc (__ieee754_hypotf, ? __ieee754_hypotf_power7 : __ieee754_hypotf_ppc32); -strong_alias (__ieee754_hypotf, __hypotf_finite) +libm_alias_finite (__ieee754_hypotf, __hypotf) |