From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 119119 invoked by alias); 29 Jan 2016 08:32:53 -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 119106 invoked by uid 89); 29 Jan 2016 08:32:52 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=indeterminate, 29pm, 29PM, Hx-languages-length:1272 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Fri, 29 Jan 2016 08:32:51 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (Postfix) with ESMTPS id 759B18CB55; Fri, 29 Jan 2016 08:32:50 +0000 (UTC) Received: from tucnak.zalov.cz ([10.3.113.11]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u0T8Wmsw008167 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Fri, 29 Jan 2016 03:32:50 -0500 Received: from tucnak.zalov.cz (localhost [127.0.0.1]) by tucnak.zalov.cz (8.15.2/8.15.2) with ESMTP id u0T8Wk5W025539; Fri, 29 Jan 2016 09:32:46 +0100 Received: (from jakub@localhost) by tucnak.zalov.cz (8.15.2/8.15.2/Submit) id u0T8Wjht025538; Fri, 29 Jan 2016 09:32:45 +0100 Date: Fri, 29 Jan 2016 08:32:00 -0000 From: Jakub Jelinek To: vogt@linux.vnet.ibm.com, gcc-patches@gcc.gnu.org, Andreas Krebbel , Jonathan Wakely Subject: Re: [PATCH] PR c++/69462: Provide FLT_EVAL_METHOD and DECIMAL_DIG in float.h. Message-ID: <20160129083244.GJ3017@tucnak.redhat.com> Reply-To: Jakub Jelinek References: <20160128124012.GA19249@linux.vnet.ibm.com> <20160128144129.GC3017@tucnak.redhat.com> <20160129082746.GA3844@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160129082746.GA3844@linux.vnet.ibm.com> User-Agent: Mutt/1.5.24 (2015-08-30) X-IsSubscribed: yes X-SW-Source: 2016-01/txt/msg02279.txt.bz2 On Fri, Jan 29, 2016 at 09:27:46AM +0100, Dominik Vogt wrote: > On Thu, Jan 28, 2016 at 03:41:29PM +0100, Jakub Jelinek wrote: > > On Thu, Jan 28, 2016 at 01:40:12PM +0100, Dominik Vogt wrote: > > > -#if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L > > > +#if (defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) \ > > > + || (defined (__cplusplus) && __cplusplus >= 201103L) > > > > The formatting is wrong, there is a tab before || when it should be aligned > > below defined on the previous line. > > Attached. > gcc/ChangeLog > > PR c++/69462 > * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG for > C++-11. Ok, thanks. > --- a/gcc/ginclude/float.h > +++ b/gcc/ginclude/float.h > @@ -127,7 +127,8 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see > #undef FLT_ROUNDS > #define FLT_ROUNDS 1 > > -#if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L > +#if (defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) \ > + || (defined (__cplusplus) && __cplusplus >= 201103L) > /* The floating-point expression evaluation method. > -1 indeterminate > 0 evaluate all operations and constants just to the range and Jakub