From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 45078 invoked by alias); 6 May 2015 08:09:24 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 45057 invoked by uid 89); 6 May 2015 08:09:23 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=AWL,BAYES_00,SPF_PASS autolearn=ham version=3.3.2 X-HELO: eu-smtp-delivery-143.mimecast.com Received: from eu-smtp-delivery-143.mimecast.com (HELO eu-smtp-delivery-143.mimecast.com) (207.82.80.143) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 06 May 2015 08:09:21 +0000 Received: from cam-owa2.Emea.Arm.com (fw-tnat.cambridge.arm.com [217.140.96.140]) by uk-mta-6.uk.mimecast.lan; Wed, 06 May 2015 09:09:18 +0100 Received: from [10.2.207.14] ([10.1.2.79]) by cam-owa2.Emea.Arm.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 6 May 2015 09:09:18 +0100 Message-ID: <5549CC2E.2060605@arm.com> Date: Wed, 06 May 2015 08:09:00 -0000 From: Renlin Li User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: "gcc-patches@gcc.gnu.org" CC: "libstdc++@gcc.gnu.org" , Marcus Shawcroft Subject: [PATCH][libstdc++-v3] Add _GLIBCXX_HAVE_LIMIT_FSIZE to guard 27_io/fpos/14775.cc X-MC-Unique: A-VNg9fcTgyxMdhVhtAIYA-1 Content-Type: multipart/mixed; boundary="------------010507040105000308040107" X-IsSubscribed: yes X-SW-Source: 2015-05/txt/msg00388.txt.bz2 This is a multi-part message in MIME format. --------------010507040105000308040107 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Content-length: 656 Hi all, This is a simple patch to add _GLIBCXX_HAVE_LIMIT_FSIZE to guard the test. In libstdc++-v3/testsuite/util/testsuite_hooks.cc. set_file_limit()=20 function is nullified when either _GLIBCXX_RES_LIMITS or=20 _GLIBCXX_HAVE_LIMIT_FSIZE is not defined. _GLIBCXX_USE_LFS can cover _GLIBCXX_RES_LIMITS, however,=20 _GLIBCXX_HAVE_LIMIT_FSIZE is not checked. The complete condition for correct execution of this test case is that,=20 those two macros are both defined. Is Okay to commit? Regards, Renlin Li libstdc++-v3/ChangeLog: 2015-05-06 Renlin Li * testsuite/27_io/fpos/14775.cc: Add _GLIBCXX_HAVE_LIMIT_FSIZE check. --------------010507040105000308040107 Content-Type: text/x-patch; name=new-1.diff Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="new-1.diff" Content-length: 470 diff --git a/libstdc++-v3/testsuite/27_io/fpos/14775.cc b/libstdc++-v3/test= suite/27_io/fpos/14775.cc index b700868..69c0a6a 100644 --- a/libstdc++-v3/testsuite/27_io/fpos/14775.cc +++ b/libstdc++-v3/testsuite/27_io/fpos/14775.cc @@ -27,7 +27,7 @@ // Basic test for LFS support. void test01() { -#ifdef _GLIBCXX_USE_LFS +#if defined (_GLIBCXX_USE_LFS) && defined (_GLIBCXX_HAVE_LIMIT_FSIZE) using namespace std; bool test __attribute__((unused)) =3D true; =20 --------------010507040105000308040107--