diff options
47 files changed, 128 insertions, 233 deletions
@@ -1,5 +1,82 @@ 2017-09-15 Joseph Myers <joseph@codesourcery.com> + * math/s_fma.c: Include <libm-alias-double.h>. + (fma): Define using libm_alias_double. + * math/s_nextafter.c: Include <libm-alias-double.h>. + (nextafter): Define using libm_alias_double. + * math/w_acos_compat.c: Include <libm-alias-double.h>. + (acos): Define using libm_alias_double. + * math/w_acosh_compat.c: Include <libm-alias-double.h>. + (aocsh): Define using libm_alias_double. + * math/w_asin_compat.c: Include <libm-alias-double.h>. + (asin): Define using libm_alias_double. + * math/w_atan2_compat.c: Include <libm-alias-double.h>. + (atan2): Define using libm_alias_double. + * math/w_atanh_compat.c: Include <libm-alias-double.h>. + (atanh): Define using libm_alias_double. + * math/w_cosh_compat.c: Include <libm-alias-double.h>. + (cosh): Define using libm_alias_double. + * math/w_exp10_compat.c: Include <libm-alias-double.h>. + (exp10): Define using libm_alias_double. + * math/w_exp2_compat.c: Include <libm-alias-double.h>. + (exp2): Define using libm_alias_double. + * math/w_exp_compat.c: Include <libm-alias-double.h>. + (exp): Define using libm_alias_double. + * math/w_fmod_compat.c: Include <libm-alias-double.h>. + (fmod): Define using libm_alias_double. + * math/w_hypot_compat.c: Include <libm-alias-double.h>. + (hypot): Define using libm_alias_double. + * math/w_j0_compat.c: Include <libm-alias-double.h>. + (j0): Define using libm_alias_double. + (y0): Likewise. + * math/w_j1_compat.c: Include <libm-alias-double.h>. + (j1): Define using libm_alias_double. + (y1): Likewise. + * math/w_jn_compat.c: Include <libm-alias-double.h>. + (jn): Define using libm_alias_double. + (yn): Likewise. + * math/w_log10_compat.c: Include <libm-alias-double.h>. + (log10): Define using libm_alias_double. + * math/w_log2_compat.c: Include <libm-alias-double.h>. + (log2): Define using libm_alias_double. + * math/w_log_compat.c: Include <libm-alias-double.h>. + (log): Define using libm_alias_double. + * math/w_pow_compat.c: Include <libm-alias-double.h>. + (pow): Define using libm_alias_double. + * math/w_remainder_compat.c: Include <libm-alias-double.h>. + (remainder): Define using libm_alias_double. + * math/w_sinh_compat.c: Include <libm-alias-double.h>. + (sinh): Define using libm_alias_double. + * math/w_sqrt_compat.c: Include <libm-alias-double.h>. + (sqrt): Define using libm_alias_double. + * math/w_tgamma_compat.c: Include <libm-alias-double.h>. + (tgamma): Define using libm_alias_double. + * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm, + GLIBC_2_0)] (nextafterl): Do not define compat symbol here. + * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c + [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise. + * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c + [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise. + * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove. + * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise. + * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise. + * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise. + * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise. + * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise. + * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise. + * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise. + * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise. + * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise. + * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise. + * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise. + * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise. + * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise. + * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise. + * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise. + * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise. + * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise. + * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise. + * math/e_acoshl.c: Remove. * math/e_acosl.c: Likewise. * math/e_asinl.c: Likewise. diff --git a/math/s_fma.c b/math/s_fma.c index dc1cc65bbe..929ca581db 100644 --- a/math/s_fma.c +++ b/math/s_fma.c @@ -18,6 +18,7 @@ <http://www.gnu.org/licenses/>. */ #include <math.h> +#include <libm-alias-double.h> double __fma (double x, double y, double z) @@ -25,10 +26,5 @@ __fma (double x, double y, double z) return (x * y) + z; } #ifndef __fma -weak_alias (__fma, fma) -#endif - -#ifdef NO_LONG_DOUBLE -strong_alias (__fma, __fmal) -weak_alias (__fmal, fmal) +libm_alias_double (__fma, fma) #endif diff --git a/math/s_nextafter.c b/math/s_nextafter.c index 72419cbe9a..fbf440e519 100644 --- a/math/s_nextafter.c +++ b/math/s_nextafter.c @@ -29,6 +29,7 @@ static char rcsid[] = "$NetBSD: s_nextafter.c,v 1.8 1995/05/10 20:47:58 jtc Exp #include <math.h> #include <math_private.h> #include <float.h> +#include <libm-alias-double.h> double __nextafter(double x, double y) { @@ -83,10 +84,8 @@ double __nextafter(double x, double y) INSERT_WORDS(x,hx,lx); return x; } -weak_alias (__nextafter, nextafter) +libm_alias_double (__nextafter, nextafter) #ifdef NO_LONG_DOUBLE -strong_alias (__nextafter, __nextafterl) -weak_alias (__nextafter, nextafterl) strong_alias (__nextafter, __nexttowardl) weak_alias (__nexttowardl, nexttowardl) #undef __nexttoward diff --git a/math/w_acos_compat.c b/math/w_acos_compat.c index 1930105153..113e1d7a83 100644 --- a/math/w_acos_compat.c +++ b/math/w_acos_compat.c @@ -20,6 +20,7 @@ #include <math.h> #include <math_private.h> #include <math-svid-compat.h> +#include <libm-alias-double.h> #if LIBM_SVID_COMPAT @@ -37,9 +38,5 @@ __acos (double x) return __ieee754_acos (x); } -weak_alias (__acos, acos) -# ifdef NO_LONG_DOUBLE -strong_alias (__acos, __acosl) -weak_alias (__acos, acosl) -# endif +libm_alias_double (__acos, acos) #endif diff --git a/math/w_acosh_compat.c b/math/w_acosh_compat.c index f6d298e17b..882537ab83 100644 --- a/math/w_acosh_compat.c +++ b/math/w_acosh_compat.c @@ -19,6 +19,7 @@ #include <math.h> #include <math_private.h> #include <math-svid-compat.h> +#include <libm-alias-double.h> #if LIBM_SVID_COMPAT @@ -32,9 +33,5 @@ __acosh (double x) return __ieee754_acosh (x); } -weak_alias (__acosh, acosh) -# ifdef NO_LONG_DOUBLE -strong_alias (__acosh, __acoshl) -weak_alias (__acosh, acoshl) -# endif +libm_alias_double (__acosh, acosh) #endif diff --git a/math/w_asin_compat.c b/math/w_asin_compat.c index 7780f85883..0c19564f18 100644 --- a/math/w_asin_compat.c +++ b/math/w_asin_compat.c @@ -20,6 +20,7 @@ #include <math.h> #include <math_private.h> #include <math-svid-compat.h> +#include <libm-alias-double.h> #if LIBM_SVID_COMPAT @@ -37,9 +38,5 @@ __asin (double x) return __ieee754_asin (x); } -weak_alias (__asin, asin) -# ifdef NO_LONG_DOUBLE -strong_alias (__asin, __asinl) -weak_alias (__asin, asinl) -# endif +libm_alias_double (__asin, asin) #endif diff --git a/math/w_atan2_compat.c b/math/w_atan2_compat.c index 1ca3349207..8162e7b28c 100644 --- a/math/w_atan2_compat.c +++ b/math/w_atan2_compat.c @@ -24,6 +24,7 @@ #include <math.h> #include <math_private.h> #include <math-svid-compat.h> +#include <libm-alias-double.h> #if LIBM_SVID_COMPAT @@ -40,9 +41,5 @@ __atan2 (double y, double x) __set_errno (ERANGE); return z; } -weak_alias (__atan2, atan2) -# ifdef NO_LONG_DOUBLE -strong_alias (__atan2, __atan2l) -weak_alias (__atan2, atan2l) -# endif +libm_alias_double (__atan2, atan2) #endif diff --git a/math/w_atanh_compat.c b/math/w_atanh_compat.c index c2cbb2ee5f..4b29a66243 100644 --- a/math/w_atanh_compat.c +++ b/math/w_atanh_compat.c @@ -19,6 +19,7 @@ #include <math.h> #include <math_private.h> #include <math-svid-compat.h> +#include <libm-alias-double.h> #if LIBM_SVID_COMPAT @@ -35,9 +36,5 @@ __atanh (double x) return __ieee754_atanh (x); } -weak_alias (__atanh, atanh) -# ifdef NO_LONG_DOUBLE -strong_alias (__atanh, __atanhl) -weak_alias (__atanh, atanhl) -# endif +libm_alias_double (__atanh, atanh) #endif diff --git a/math/w_cosh_compat.c b/math/w_cosh_compat.c index d0cb6b165f..6941807d9b 100644 --- a/math/w_cosh_compat.c +++ b/math/w_cosh_compat.c @@ -17,6 +17,7 @@ #include <math.h> #include <math_private.h> #include <math-svid-compat.h> +#include <libm-alias-double.h> #if LIBM_SVID_COMPAT double @@ -29,9 +30,5 @@ __cosh (double x) return z; } -weak_alias (__cosh, cosh) -# ifdef NO_LONG_DOUBLE -strong_alias (__cosh, __coshl) -weak_alias (__cosh, coshl) -# endif +libm_alias_double (__cosh, cosh) #endif diff --git a/math/w_exp10_compat.c b/math/w_exp10_compat.c index 42dc312ee8..a91b98ff22 100644 --- a/math/w_exp10_compat.c +++ b/math/w_exp10_compat.c @@ -24,6 +24,7 @@ #include <math.h> #include <math_private.h> #include <math-svid-compat.h> +#include <libm-alias-double.h> #if LIBM_SVID_COMPAT double @@ -37,14 +38,12 @@ __exp10 (double x) return z; } -weak_alias (__exp10, exp10) +libm_alias_double (__exp10, exp10) # if SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27) strong_alias (__exp10, __pow10) compat_symbol (libm, __pow10, pow10, GLIBC_2_1); # endif # ifdef NO_LONG_DOUBLE -strong_alias (__exp10, __exp10l) -weak_alias (__exp10, exp10l) # if SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27) strong_alias (__exp10l, __pow10l) compat_symbol (libm, __pow10l, pow10l, GLIBC_2_1); diff --git a/math/w_exp2_compat.c b/math/w_exp2_compat.c index 5739547859..7ab618292f 100644 --- a/math/w_exp2_compat.c +++ b/math/w_exp2_compat.c @@ -5,6 +5,7 @@ #include <math.h> #include <math_private.h> #include <math-svid-compat.h> +#include <libm-alias-double.h> #if LIBM_SVID_COMPAT double @@ -18,9 +19,5 @@ __exp2 (double x) return z; } -weak_alias (__exp2, exp2) -# ifdef NO_LONG_DOUBLE -strong_alias (__exp2, __exp2l) -weak_alias (__exp2, exp2l) -# endif +libm_alias_double (__exp2, exp2) #endif diff --git a/math/w_exp_compat.c b/math/w_exp_compat.c index 98aa5b76a0..d5666b7cf7 100644 --- a/math/w_exp_compat.c +++ b/math/w_exp_compat.c @@ -19,6 +19,7 @@ #include <math.h> #include <math_private.h> #include <math-svid-compat.h> +#include <libm-alias-double.h> #if LIBM_SVID_COMPAT /* wrapper exp */ @@ -33,9 +34,5 @@ __exp (double x) return z; } hidden_def (__exp) -weak_alias (__exp, exp) -# ifdef NO_LONG_DOUBLE -strong_alias (__exp, __expl) -weak_alias (__exp, expl) -# endif +libm_alias_double (__exp, exp) #endif diff --git a/math/w_fmod_compat.c b/math/w_fmod_compat.c index f75b8615d0..a4d2ebefea 100644 --- a/math/w_fmod_compat.c +++ b/math/w_fmod_compat.c @@ -19,6 +19,7 @@ #include <math.h> #include <math_private.h> #include <math-svid-compat.h> +#include <libm-alias-double.h> #if LIBM_SVID_COMPAT /* wrapper fmod */ @@ -32,9 +33,5 @@ __fmod (double x, double y) return __ieee754_fmod (x, y); } -weak_alias (__fmod, fmod) -# ifdef NO_LONG_DOUBLE -strong_alias (__fmod, __fmodl) -weak_alias (__fmod, fmodl) -# endif +libm_alias_double (__fmod, fmod) #endif diff --git a/math/w_hypot_compat.c b/math/w_hypot_compat.c index 21c7e65c5e..f07039cc51 100644 --- a/math/w_hypot_compat.c +++ b/math/w_hypot_compat.c |
