From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2077 invoked by alias); 7 Aug 2018 10:11:16 -0000 Mailing-List: contact fortran-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: fortran-owner@gcc.gnu.org Received: (qmail 2056 invoked by uid 89); 7 Aug 2018 10:11:16 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=0.4 required=5.0 tests=AWL,BAYES_40,HTML_MESSAGE,KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2 spammy=H*r:sk:mailhos, 57160, H*f:CAKwh3qggW, scream X-HELO: nef2.ens.fr Received: from nef2.ens.fr (HELO nef2.ens.fr) (129.199.96.40) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 07 Aug 2018 10:11:14 +0000 X-ENS-nef-client: 129.199.120.1 Received: from mailhost.lps.ens.fr (tournesol.lps.ens.fr [129.199.120.1]) by nef2.ens.fr (8.13.6/1.01.28121999) with ESMTP id w77ABB1g020886 ; Tue, 7 Aug 2018 12:11:11 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mailhost.lps.ens.fr (Postfix) with ESMTP id 6842614E; Tue, 7 Aug 2018 12:11:11 +0200 (CEST) Received: from mailhost.lps.ens.fr ([127.0.0.1]) by localhost (tournesol.lps.ens.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5e0A2LEcxpps; Tue, 7 Aug 2018 12:11:11 +0200 (CEST) Received: from [192.168.1.26] (91-162-41-6.subs.proxad.net [91.162.41.6]) by mailhost.lps.ens.fr (Postfix) with ESMTPSA id 424A5147; Tue, 7 Aug 2018 12:11:11 +0200 (CEST) From: =?utf-8?Q?Dominique_d=27Humi=C3=A8res?= Message-Id: <707691ED-E885-4038-B493-E1E97FE96358@lps.ens.fr> Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: Re: [Patch, Fortran] PR 57160: short-circuit IF only with -ffrontend-optimize Date: Tue, 07 Aug 2018 10:11:00 -0000 In-Reply-To: Cc: Thomas Koenig , gfortran To: Janus Weil References: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-SW-Source: 2018-08/txt/msg00025.txt.bz2 > It's so easy to scream "bullshit", and so hard to find a good > solution. Still, we need one =E2=80=A6 Sorry if I have not been clear enough. I see only two sensible solutions: (1) The statu quo, closing the PR as WONTFIX (2) Introduce a new option, for instance -fshort-circuit (default) for the short-circuit evaluation -fno-short-circuit to force the evaluation of both expressions. Dominique