From be668a8d782ab6bf363d4cdd7086295b5eebb8ea Mon Sep 17 00:00:00 2001 From: Adhemerval Zanella Date: Wed, 8 Apr 2020 19:51:44 -0300 Subject: New exp10f version without SVID compat wrapper This patch changes the exp10f error handling semantics to only set errno according to POSIX rules. New symbol version is introduced at GLIBC_2.32. The old wrappers are kept for compat symbols. There are some outliers that need special handling: - ia64 provides an optimized implementation of exp10f that uses ia64 specific routines to set SVID compatibility. The new symbol version is aliased to the exp10f one. - m68k also provides an optimized implementation, and the new version uses it instead of the sysdeps/ieee754/flt32 one. - riscv and csky uses the generic template implementation that does not provide SVID support. For both cases a new exp10f version is not added, but rather the symbols version of the generic sysdeps/ieee754/flt32 is adjusted instead. Checked on aarch64-linux-gnu, x86_64-linux-gnu, i686-linux-gnu, powerpc64le-linux-gnu. --- sysdeps/ia64/fpu/e_exp10f.S | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'sysdeps/ia64/fpu/e_exp10f.S') diff --git a/sysdeps/ia64/fpu/e_exp10f.S b/sysdeps/ia64/fpu/e_exp10f.S index 67218c7..e82394b 100644 --- a/sysdeps/ia64/fpu/e_exp10f.S +++ b/sysdeps/ia64/fpu/e_exp10f.S @@ -218,7 +218,7 @@ LOCAL_OBJECT_END(T_table) .section .text -GLOBAL_IEEE754_ENTRY(exp10f) +GLOBAL_IEEE754_ENTRY(__exp10f) {.mfi @@ -487,11 +487,17 @@ OUT_RANGE_exp10: } ;; -GLOBAL_IEEE754_END(exp10f) +GLOBAL_IEEE754_END(__exp10f) libm_alias_float_other (__exp10, exp10) #if SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27) -compat_symbol (libm, exp10f, pow10f, GLIBC_2_2) +strong_alias (__exp10f, __pow10f_compat) +compat_symbol (libm, __pow10f_compat, pow10f, GLIBC_2_2) #endif +#if SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_32) +strong_alias (__exp10f, __exp10f_compat) +compat_symbol (libm, __exp10f_compat, exp10f, GLIBC_2_1) +#endif +versioned_symbol (libm, __exp10f, exp10f, GLIBC_2_32) LOCAL_LIBM_ENTRY(__libm_error_region) -- cgit v1.1