From patchwork Tue Sep 16 21:32:50 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Will Newton X-Patchwork-Id: 37468 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f72.google.com (mail-wg0-f72.google.com [74.125.82.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 8033F2057E for ; Tue, 16 Sep 2014 21:33:26 +0000 (UTC) Received: by mail-wg0-f72.google.com with SMTP id m15sf263351wgh.11 for ; Tue, 16 Sep 2014 14:33:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:mailing-list :precedence:list-id:list-unsubscribe:list-subscribe:list-archive :list-post:list-help:sender:delivered-to:from:to:subject:date :message-id:in-reply-to:references:x-original-sender :x-original-authentication-results; bh=7f8AY1uf6q/5Gqm0pwFDrcoteDN+uic/enwELs6oPvo=; b=QnzhnrK73xxCS+Vt63Un9VJbqYwSZsRFe5Wcngk9gqKoZeEcqmjAlSp3avG+jinrLD 3zeBINDSqtmOggWYxEOSFYHp6nOB6kHR+9zSio50p+kOVA1dLqUZSeNFIryu0LWiLW8C hReW2V1S8YhD7dSYrzeeprbZVCFevEtp6AFYtLXjbXrV4QnKawS2M6nTr8W5ud5yLtyB 3oSBZAxx6FywGkk9nEBabTgUnj3Bez0bdyOh+UDdN/MPsY98jO+XJZ6tj1yyvMyBCLpF UozmfHvidUrBGfv3+Xnq2uMm7/S9XNv6XCs7xZCbQzdHFNg9Z9HNmZHENOP7jYTG0eL1 FSbg== X-Gm-Message-State: ALoCoQnRIUQR2xlJTTeYgWWqCIRmPkUxJBoRtAjL0hUDe44DIWXMT2KZIPD09YElty6JmAeDWuaQ X-Received: by 10.180.183.165 with SMTP id en5mr5688453wic.1.1410903205748; Tue, 16 Sep 2014 14:33:25 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.44.195 with SMTP id g3ls52341lam.59.gmail; Tue, 16 Sep 2014 14:33:25 -0700 (PDT) X-Received: by 10.112.204.197 with SMTP id la5mr36329183lbc.2.1410903205592; Tue, 16 Sep 2014 14:33:25 -0700 (PDT) Received: from mail-la0-x231.google.com (mail-la0-x231.google.com [2a00:1450:4010:c03::231]) by mx.google.com with ESMTPS id b5si26056958lbf.54.2014.09.16.14.33.25 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 16 Sep 2014 14:33:25 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2a00:1450:4010:c03::231 as permitted sender) client-ip=2a00:1450:4010:c03::231; Received: by mail-la0-f49.google.com with SMTP id pv20so661863lab.36 for ; Tue, 16 Sep 2014 14:33:25 -0700 (PDT) X-Received: by 10.112.200.134 with SMTP id js6mr20530lbc.0.1410903205130; Tue, 16 Sep 2014 14:33:25 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.130.169 with SMTP id of9csp476759lbb; Tue, 16 Sep 2014 14:33:24 -0700 (PDT) X-Received: by 10.68.197.170 with SMTP id iv10mr27432290pbc.129.1410903203710; Tue, 16 Sep 2014 14:33:23 -0700 (PDT) Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id x13si31799292pdk.119.2014.09.16.14.33.22 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 16 Sep 2014 14:33:23 -0700 (PDT) Received-SPF: pass (google.com: domain of libc-alpha-return-52907-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Received: (qmail 367 invoked by alias); 16 Sep 2014 21:33:04 -0000 Mailing-List: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org Precedence: list 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 32655 invoked by uid 89); 16 Sep 2014 21:33:03 -0000 X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-pa0-f48.google.com X-Received: by 10.70.94.201 with SMTP id de9mr33791725pdb.103.1410903180270; Tue, 16 Sep 2014 14:33:00 -0700 (PDT) From: Will Newton To: libc-alpha@sourceware.org Subject: [PATCH] stdlib/tst-strtod-round.c: Fix build on ARM Date: Tue, 16 Sep 2014 14:32:50 -0700 Message-Id: <1410903170-31206-2-git-send-email-will.newton@linaro.org> In-Reply-To: <1410903170-31206-1-git-send-email-will.newton@linaro.org> References: <1410903170-31206-1-git-send-email-will.newton@linaro.org> X-Original-Sender: will.newton@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2a00:1450:4010:c03::231 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org; dkim=pass header.i=@sourceware.org X-Google-Group-Id: 836684582541 Building this test on ARM fails because the prototypes for the long double variants of the math functions are unavailable. Add an additional include guard to math.h that enables long double math function declarations if _LIBC_TEST is defined and define _LIBC_TEST in stdlib/tst-strtod-round.c. ChangeLog: 2014-09-16 Will Newton * math/math.h: Define long double math functions if _LIBC_TEST is defined. * stdlib/tst-strtod-round.c: Define _LIBC_TEST. --- math/math.h | 2 +- stdlib/tst-strtod-round.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/math/math.h b/math/math.h index 72ec2ca..dc7ab2d 100644 --- a/math/math.h +++ b/math/math.h @@ -91,7 +91,7 @@ __BEGIN_DECLS # undef _Mdouble_END_NAMESPACE # undef __MATH_PRECNAME -# if !(defined __NO_LONG_DOUBLE_MATH && defined _LIBC) \ +# if !(defined __NO_LONG_DOUBLE_MATH && defined _LIBC && !defined _LIBC_TEST) \ || defined __LDBL_COMPAT # ifdef __LDBL_COMPAT diff --git a/stdlib/tst-strtod-round.c b/stdlib/tst-strtod-round.c index f334b20..cbde457 100644 --- a/stdlib/tst-strtod-round.c +++ b/stdlib/tst-strtod-round.c @@ -17,6 +17,9 @@ License along with the GNU C Library; if not, see . */ +/* Defining _LIBC_TEST ensures long double math functions are + declared in the headers. */ +#define _LIBC_TEST 1 #include #include #include