From patchwork Fri Oct 13 23:05:59 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joseph Myers X-Patchwork-Id: 23568 Received: (qmail 38167 invoked by alias); 13 Oct 2017 23:06:10 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 37594 invoked by uid 89); 13 Oct 2017 23:06:09 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-24.5 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS, URIBL_RED autolearn=ham version=3.3.2 spammy= X-HELO: relay1.mentorg.com Date: Fri, 13 Oct 2017 23:05:59 +0000 From: Joseph Myers To: Subject: Use libm_alias_ldouble_other in ldbl-64-128/s_nextafterl.c [committed] Message-ID: User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 X-ClientProxiedBy: svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) To svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) This patch makes ldbl-64-128/s_nextafterl.c restore the default weak_alias definition and use libm_alias_ldouble_other (having undefined and redefined weak_alias for the include of ldbl-128/s_nextafterl.c, so the libm_alias_ldouble use in the latter file is ineffective). Tested with build-many-glibcs.py that installed stripped shared libraries are unchanged by this patch. Also tested together with changes to enable float128 aliases. Committed. 2017-10-13 Joseph Myers * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias): Undefine and restore default definition. Use libm_alias_ldouble_other. diff --git a/sysdeps/ieee754/ldbl-64-128/s_nextafterl.c b/sysdeps/ieee754/ldbl-64-128/s_nextafterl.c index 64c663e..5218abe 100644 --- a/sysdeps/ieee754/ldbl-64-128/s_nextafterl.c +++ b/sysdeps/ieee754/ldbl-64-128/s_nextafterl.c @@ -4,3 +4,6 @@ #include long_double_symbol (libm, __nextafterl, nextafterl); long_double_symbol (libm, __nexttowardl, nexttowardl); +#undef weak_alias +#define weak_alias(name, aliasname) _weak_alias (name, aliasname) +libm_alias_ldouble_other (__nextafter, nextafter)