From ea814db27ae450f9ce1b233dfeeea608d485adde Mon Sep 17 00:00:00 2001 From: "Gabriel F. T. Gomes" Date: Wed, 21 Dec 2016 10:20:08 -0200 Subject: Move w_lgamma_r to libm-compat-calls-auto This patch adds the suffix "_compat" to lgamma_r wrappers and make some adjustments to #includes and Makefiles. This is a step towards deprecation of wrappers that use _LIB_VERSION / matherr / __kernel_standard functionality. Tested for powerpc64le, s390, and x86_64. * math/Makefile (libm-calls): Move w_lgammaF_r... (libm-compat-calls-auto): Here. * math/w_lgamma_r.c: Add suffix "_compat" to filename. * math/w_lgammaf_r.c: Likewise. * math/w_lgammal_r.c: Likewise. * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise. * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise. * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise. * math/w_lgamma_r_compat.c: New file, copied from above. * math/w_lgammaf_r_compat.c: Likewise. * math/w_lgammal_r_compat.c: Likewise. * sysdeps/ia64/fpu/w_lgamma_r_compat.c: Likewise. * sysdeps/ia64/fpu/w_lgammaf_r_compat.c: Likewise. * sysdeps/ia64/fpu/w_lgammal_r_compat.c: Likewise. * sysdeps/ieee754/ldbl-opt/w_lgamma_r.c: Add suffix "_compat" to filename. * sysdeps/ieee754/ldbl-opt/w_lgammal_r.c: Likewise. * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: New file copied from above and adjusted for the new filenames. * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise. --- sysdeps/ieee754/ldbl-opt/w_lgamma_r.c | 5 ----- sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c | 5 +++++ sysdeps/ieee754/ldbl-opt/w_lgammal_r.c | 5 ----- sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c | 5 +++++ 4 files changed, 10 insertions(+), 10 deletions(-) delete mode 100644 sysdeps/ieee754/ldbl-opt/w_lgamma_r.c create mode 100644 sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c delete mode 100644 sysdeps/ieee754/ldbl-opt/w_lgammal_r.c create mode 100644 sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c (limited to 'sysdeps/ieee754') diff --git a/sysdeps/ieee754/ldbl-opt/w_lgamma_r.c b/sysdeps/ieee754/ldbl-opt/w_lgamma_r.c deleted file mode 100644 index eeab6a6b47..0000000000 --- a/sysdeps/ieee754/ldbl-opt/w_lgamma_r.c +++ /dev/null @@ -1,5 +0,0 @@ -#include -#include -#if LONG_DOUBLE_COMPAT(libm, GLIBC_2_0) -compat_symbol (libm, __lgamma_r, lgammal_r, GLIBC_2_0); -#endif diff --git a/sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c b/sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c new file mode 100644 index 0000000000..673954cd1a --- /dev/null +++ b/sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c @@ -0,0 +1,5 @@ +#include +#include +#if LONG_DOUBLE_COMPAT(libm, GLIBC_2_0) +compat_symbol (libm, __lgamma_r, lgammal_r, GLIBC_2_0); +#endif diff --git a/sysdeps/ieee754/ldbl-opt/w_lgammal_r.c b/sysdeps/ieee754/ldbl-opt/w_lgammal_r.c deleted file mode 100644 index 25459758d7..0000000000 --- a/sysdeps/ieee754/ldbl-opt/w_lgammal_r.c +++ /dev/null @@ -1,5 +0,0 @@ -#include -#undef weak_alias -#define weak_alias(n,a) -#include -long_double_symbol (libm, __lgammal_r, lgammal_r); diff --git a/sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c b/sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c new file mode 100644 index 0000000000..6fdf2bba87 --- /dev/null +++ b/sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c @@ -0,0 +1,5 @@ +#include +#undef weak_alias +#define weak_alias(n,a) +#include +long_double_symbol (libm, __lgammal_r, lgammal_r); -- cgit 1.4.1