diff options
author | Joseph Myers <joseph@codesourcery.com> | 2017-09-01 21:13:18 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2017-09-01 21:13:18 +0000 |
commit | 5a80d39d0d2587e9bd8e72f19e92eeb2a66fbe9e (patch) | |
tree | 92d35005b29aa5969b6da94249d31b50c2871ae3 /sysdeps/ia64 | |
parent | 3824fc38910f71c2c8cc623e788ff7eb09999642 (diff) | |
download | glibc-5a80d39d0d2587e9bd8e72f19e92eeb2a66fbe9e.tar glibc-5a80d39d0d2587e9bd8e72f19e92eeb2a66fbe9e.tar.gz glibc-5a80d39d0d2587e9bd8e72f19e92eeb2a66fbe9e.tar.bz2 glibc-5a80d39d0d2587e9bd8e72f19e92eeb2a66fbe9e.zip |
Obsolete pow10 functions.
This patch obsoletes the pow10, pow10f and pow10l functions (makes
them into compat symbols, not available for new ports or static
linking). The exp10 names for these functions are standardized (in TS
18661-4) and were added in the same glibc version (2.1) as pow10 so
source code can change to use them without any loss of portability.
Since pow10 is deliberately not provided for _Float128, only exp10,
this slightly simplifies moving to the new wrapper templates in the
!LIBM_SVID_COMPAT case, by avoiding needing to arrange for pow10,
pow10f and pow10l to be defined by those templates.
Tested for x86_64, and with build-many-glibcs.py.
* manual/math.texi (pow10): Do not document.
(pow10f): Likewise.
(pow10l): Likewise.
* math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
* math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
* math/libm-test-exp10.inc (pow10_test): Remove.
(do_test): Do not call pow10.
* math/w_exp10_compat.c (pow10): Make into compat symbol.
[NO_LONG_DOUBLE] (pow10l): Likewise.
* math/w_exp10f_compat.c (pow10f): Likewise.
* math/w_exp10l_compat.c (pow10l): Likewise.
* sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
(pow10): Make into compat symbol.
* sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
(pow10f): Make into compat symbol.
* sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
(pow10l): Make into compat symbol.
* sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
pow10.
(CFLAGS-nldbl-pow10.c): Remove variable..
* sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
* sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
[SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
* sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
Undefine and redefine.
(pow10l): Make into compat symbol.
* sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
* sysdeps/alpha/fpu/libm-test-ulps: Likewise.
* sysdeps/arm/libm-test-ulps: Likewise.
* sysdeps/hppa/fpu/libm-test-ulps: Likewise.
* sysdeps/i386/fpu/libm-test-ulps: Likewise.
* sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
* sysdeps/microblaze/libm-test-ulps: Likewise.
* sysdeps/mips/mips32/libm-test-ulps: Likewise.
* sysdeps/mips/mips64/libm-test-ulps: Likewise.
* sysdeps/nios2/libm-test-ulps: Likewise.
* sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
* sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
* sysdeps/s390/fpu/libm-test-ulps: Likewise.
* sysdeps/sh/libm-test-ulps: Likewise.
* sysdeps/sparc/fpu/libm-test-ulps: Likewise.
* sysdeps/tile/libm-test-ulps: Likewise.
* sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
Diffstat (limited to 'sysdeps/ia64')
-rw-r--r-- | sysdeps/ia64/fpu/e_exp10.S | 6 | ||||
-rw-r--r-- | sysdeps/ia64/fpu/e_exp10f.S | 6 | ||||
-rw-r--r-- | sysdeps/ia64/fpu/e_exp10l.S | 6 |
3 files changed, 15 insertions, 3 deletions
diff --git a/sysdeps/ia64/fpu/e_exp10.S b/sysdeps/ia64/fpu/e_exp10.S index eafa59dd7c..7b0737184b 100644 --- a/sysdeps/ia64/fpu/e_exp10.S +++ b/sysdeps/ia64/fpu/e_exp10.S @@ -87,6 +87,8 @@ // p6-p12 // +#include <shlib-compat.h> + GR_TBL_START = r2 GR_LOG_TBL = r3 @@ -534,7 +536,9 @@ OUT_RANGE_exp10: ;; GLOBAL_IEEE754_END(exp10) -weak_alias (exp10, pow10) +#if SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27) +compat_symbol (libm, exp10, pow10, GLIBC_2_2) +#endif LOCAL_LIBM_ENTRY(__libm_error_region) diff --git a/sysdeps/ia64/fpu/e_exp10f.S b/sysdeps/ia64/fpu/e_exp10f.S index fa54e9039f..f9fe8ca192 100644 --- a/sysdeps/ia64/fpu/e_exp10f.S +++ b/sysdeps/ia64/fpu/e_exp10f.S @@ -86,6 +86,8 @@ // p6-p12 // +#include <shlib-compat.h> + GR_TBL_START = r2 GR_LOG_TBL = r3 @@ -486,7 +488,9 @@ OUT_RANGE_exp10: ;; GLOBAL_IEEE754_END(exp10f) -weak_alias (exp10f, pow10f) +#if SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27) +compat_symbol (libm, exp10f, pow10f, GLIBC_2_2) +#endif LOCAL_LIBM_ENTRY(__libm_error_region) diff --git a/sysdeps/ia64/fpu/e_exp10l.S b/sysdeps/ia64/fpu/e_exp10l.S index f72d547ebf..0a610b3597 100644 --- a/sysdeps/ia64/fpu/e_exp10l.S +++ b/sysdeps/ia64/fpu/e_exp10l.S @@ -85,6 +85,8 @@ // p6-p8, p11-p14 // +#include <shlib-compat.h> + FR_X = f10 FR_Y = f1 @@ -747,7 +749,9 @@ OUT_RANGE_EXP10: ;; GLOBAL_IEEE754_END(exp10l) -weak_alias (exp10l, pow10l) +#if SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27) +compat_symbol (libm, exp10l, pow10l, GLIBC_2_2) +#endif LOCAL_LIBM_ENTRY(__libm_error_region) |