This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Fix ldbl-opt/w_lgamma_compatl.c libm_alias_ldouble_other usage [committed]
- From: Joseph Myers <joseph at codesourcery dot com>
- To: <libc-alpha at sourceware dot org>
- Date: Fri, 13 Oct 2017 16:39:21 +0000
- Subject: Fix ldbl-opt/w_lgamma_compatl.c libm_alias_ldouble_other usage [committed]
- Authentication-results: sourceware.org; auth=none
Testing with changes to enable _Float128 function aliases shows that
the libm_alias_ldouble_other usage in ldbl-opt/w_lgamma_compatl.c does
not in fact work. Furthermore, it is unnecessary; the relevant
aliases get created through w_lgammal_compat2.c. This patch removes
the problem code.
Tested with build-many-glibcs.py that installed stripped shared
libraries are unchanged by the patch. Also tested in conjunction with
patches to enable _Float128 function aliases. Committed.
2017-10-13 Joseph Myers <joseph@codesourcery.com>
* sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
Remove conditional code.
diff --git a/sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c b/sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c
index 003a253..f60b3d7 100644
--- a/sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c
+++ b/sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c
@@ -9,8 +9,3 @@
#if GAMMA_ALIAS
long_double_symbol (libm, __gammal, gammal);
#endif
-#if BUILD_LGAMMA
-# undef weak_alias
-# define weak_alias(name, aliasname) _weak_alias (name, aliasname)
-libm_alias_ldouble_other (__lgamma, lgamma)
-#endif
--
Joseph S. Myers
joseph@codesourcery.com