From patchwork Fri Oct 13 23:10:34 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joseph Myers X-Patchwork-Id: 23569 Received: (qmail 42043 invoked by alias); 13 Oct 2017 23:10:44 -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 41727 invoked by uid 89); 13 Oct 2017 23:10:43 -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=Hx-languages-length:1229 X-HELO: relay1.mentorg.com Date: Fri, 13 Oct 2017 23:10:34 +0000 From: Joseph Myers To: Subject: Support strfromf128 alias [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 adds support for building strfromf128 as an alias of strfroml, in the case of __HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128. 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 * stdlib/strfroml.c: Include . [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128): Define before include of and undefine afterwards, then define as weak alias. diff --git a/stdlib/strfroml.c b/stdlib/strfroml.c index f8c8a4f..bd6ebca 100644 --- a/stdlib/strfroml.c +++ b/stdlib/strfroml.c @@ -16,7 +16,19 @@ License along with the GNU C Library; if not, see . */ +#include + #define FLOAT long double #define STRFROM strfroml +#if __HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128 +# define strfromf128 __hide_strfromf128 +# include +# undef strfromf128 +#endif + #include "strfrom-skeleton.c" + +#if __HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128 +weak_alias (strfroml, strfromf128) +#endif