From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 129026 invoked by alias); 22 Jul 2015 15:12:04 -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 129013 invoked by uid 89); 22 Jul 2015 15:12:03 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 X-HELO: fencepost.gnu.org Received: from fencepost.gnu.org (HELO fencepost.gnu.org) (208.118.235.10) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Wed, 22 Jul 2015 15:12:02 +0000 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50859) by fencepost.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1ZHvgd-0002hu-Nu for gcc-patches@gnu.org; Wed, 22 Jul 2015 11:11:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZHvgX-0005Xc-EV for gcc-patches@gnu.org; Wed, 22 Jul 2015 11:11:59 -0400 Received: from relay1.mentorg.com ([192.94.38.131]:58197) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZHvgX-0005X2-8a for gcc-patches@gnu.org; Wed, 22 Jul 2015 11:11:53 -0400 Received: from nat-ies.mentorg.com ([192.94.31.2] helo=SVR-IES-FEM-02.mgc.mentorg.com) by relay1.mentorg.com with esmtp id 1ZHvgV-0002nH-6C from Tom_deVries@mentor.com ; Wed, 22 Jul 2015 08:11:51 -0700 Received: from [127.0.0.1] (137.202.0.76) by SVR-IES-FEM-02.mgc.mentorg.com (137.202.0.106) with Microsoft SMTP Server id 14.3.224.2; Wed, 22 Jul 2015 16:11:49 +0100 Message-ID: <55AFB2AA.60204@mentor.com> Date: Wed, 22 Jul 2015 15:33:00 -0000 From: Tom de Vries User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Richard Biener CC: "gcc-patches@gnu.org" Subject: [PATCH] Document ftrapv/fwrapv interaction References: <55A6C1DF.1050108@mentor.com> <20150720183141.GB20717@f1.c.bardezibar.internal> <55AD9093.1060206@mentor.com> <55AE5340.2010700@mentor.com> <20150721184249.GA7417@f1.c.bardezibar.internal> In-Reply-To: Content-Type: multipart/mixed; boundary="------------000600020305080701080906" X-detected-operating-system: by eggs.gnu.org: Windows NT kernel [generic] [fuzzy] X-Received-From: 192.94.38.131 X-SW-Source: 2015-07/txt/msg01858.txt.bz2 --------------000600020305080701080906 Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Content-length: 574 [ Re: [RFC, PR66873] Use graphite for parloops ] On 22/07/15 13:01, Richard Biener wrote: > why only scalar floats? Please use FLOAT_TYPE_P. > > + if (INTEGRAL_TYPE_P (type)) > + return (!TYPE_OVERFLOW_TRAPS (type) > + && TYPE_OVERFLOW_WRAPS (type)); > > it cannot both wrap and trap thus TYPE_OVERFLOW_WRAPS is enough. Hmm, indeed, when specifying both, one is quietly ignored. The documentation also doesn't mention this. Attached untested patch mentions this ftrapv/fwrapv interaction in the docs. OK for trunk, if bootstrap succeeds? Thanks, - Tom --------------000600020305080701080906 Content-Type: text/x-patch; name="0001-Document-ftrapv-fwrapv-interaction.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="0001-Document-ftrapv-fwrapv-interaction.patch" Content-length: 1676 Document ftrapv/fwrapv interaction 2015-07-22 Tom de Vries * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction. --- gcc/doc/invoke.texi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 55c2659..aa0b0c0 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -23676,6 +23676,11 @@ option is used to control the temporary stack reuse optimization. @opindex ftrapv This option generates traps for signed overflow on addition, subtraction, multiplication operations. +The options @option{-ftrapv} and @option{-fwrapv} override each other, so using +@option{-ftrapv} @option{-fwrapv} on the command-line results in +@option{-fwrapv} being effective. Note that only active options override, so +using @option{-ftrapv} @option{-fwrapv} @option{-fno-wrapv} on the command-line +results in @option{-ftrapv} being effective. @item -fwrapv @opindex fwrapv @@ -23684,6 +23689,11 @@ overflow of addition, subtraction and multiplication wraps around using twos-complement representation. This flag enables some optimizations and disables others. This option is enabled by default for the Java front end, as required by the Java language specification. +The options @option{-ftrapv} and @option{-fwrapv} override each other, so using +@option{-ftrapv} @option{-fwrapv} on the command-line results in +@option{-fwrapv} being effective. Note that only active options override, so +using @option{-ftrapv} @option{-fwrapv} @option{-fno-wrapv} on the command-line +results in @option{-ftrapv} being effective. @item -fexceptions @opindex fexceptions -- 1.9.1 --------------000600020305080701080906--