+2017-09-13 Joseph Myers <joseph@codesourcery.com>
+
+ * math/w_scalbln_template.c (strong_alias): Do not undefine and
+ redefine.
+ * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
+ macro.
+ (ldexpl): Only define as compat symbol for libc, not libm.
+ (scalbnl): Define as compat symbol for libc here.
+ * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
+ define for [IS_IN (libc)].
+ (__ldexpl_2): Remove alias.
+ (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
+ (scalbnl): Likewise. Use __wrap_scalbnl not __ldexpl_2 as base
+ name in long_double_symbol call.
+ * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
+ * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
+ * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
+ * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
+ * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
+ Remove macro.
+ [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
+ Define as compat symbol.
+
2017-09-13 Adhemerval Zanella <adhemerval.zanella@linaro.org>
* sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
return x;
}
-/* Define strong_alias to nothing because we don't want
- declare_mgen_alias to create a strong alias for scalblnl. */
-#undef strong_alias
-#define strong_alias(name, alias_name)
declare_mgen_alias (__w_scalbln, scalbln)
License along with the GNU C Library; if not, see
<http://www.gnu.org/licenses/>. */
-#define declare_mgen_alias(from, to) weak_alias (from, to)
#include <math-type-macros-double.h>
#include <s_ldexp_template.c>
-#if IS_IN (libm)
-# if LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)
-compat_symbol (libm, __ldexp, ldexpl, GLIBC_2_0);
-# endif
-#elif LONG_DOUBLE_COMPAT(libc, GLIBC_2_0)
+#if IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_0)
compat_symbol (libc, __ldexp, ldexpl, GLIBC_2_0);
+compat_symbol (libc, __wrap_scalbn, scalbnl, GLIBC_2_0);
#endif
License along with the GNU C Library; if not, see
<http://www.gnu.org/licenses/>. */
-#define declare_mgen_alias(f,t)
+#if IS_IN (libc)
+# define declare_mgen_alias(f,t)
+#endif
#include <math-type-macros-ldouble.h>
#include <s_ldexp_template.c>
-strong_alias (__ldexpl, __ldexpl_2)
-#if IS_IN (libm)
-long_double_symbol (libm, __ldexpl, ldexpl);
-long_double_symbol (libm, __ldexpl_2, scalbnl);
-#else
+#if IS_IN (libc)
long_double_symbol (libc, __ldexpl, ldexpl);
-long_double_symbol (libc, __ldexpl_2, scalbnl);
+long_double_symbol (libc, __wrap_scalbnl, scalbnl);
#endif
+++ /dev/null
-#include <math_ldbl_opt.h>
-#include <sysdeps/ieee754/dbl-64/s_log1p.c>
-#if LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)
-compat_symbol (libm, __log1p, log1pl, GLIBC_2_0);
-#endif
+++ /dev/null
-#include <math_ldbl_opt.h>
-#include <sysdeps/ieee754/dbl-64/s_scalbln.c>
-#if IS_IN (libm)
-#if LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)
-compat_symbol (libm, __scalbln, scalblnl, GLIBC_2_1);
-#endif
-#elif LONG_DOUBLE_COMPAT(libc, GLIBC_2_1)
-compat_symbol (libc, __scalbln, scalblnl, GLIBC_2_1);
-#endif
+++ /dev/null
-#include <math_ldbl_opt.h>
-#include <sysdeps/ieee754/dbl-64/s_scalbn.c>
-#if IS_IN (libm)
-# if LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)
-compat_symbol (libm, __scalbn, scalbnl, GLIBC_2_0);
-# endif
-#elif LONG_DOUBLE_COMPAT(libc, GLIBC_2_0)
-compat_symbol (libc, __scalbn, scalbnl, GLIBC_2_0);
-#endif
+++ /dev/null
-#define declare_mgen_alias(from, to) weak_alias (from, to)
-#include <math-type-macros-double.h>
-#include <w_log1p_template.c>
-#define declare_mgen_alias(from, to) weak_alias (from, to)
#include <math-type-macros-double.h>
#include <w_scalbln_template.c>
+#if IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)
+compat_symbol (libc, __w_scalbln, scalblnl, GLIBC_2_1);
+#endif