From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg1-x52d.google.com (mail-pg1-x52d.google.com [IPv6:2607:f8b0:4864:20::52d]) by sourceware.org (Postfix) with ESMTPS id 46EB03858D1E for ; Mon, 19 Jun 2023 17:55:20 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 46EB03858D1E Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pg1-x52d.google.com with SMTP id 41be03b00d2f7-54f85f8b961so2877424a12.3 for ; Mon, 19 Jun 2023 10:55:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687197319; x=1689789319; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=hBWTNjeJMlttFDcHSgp9h3SX1lBw+yRzvRbqzdyrJP8=; b=XX/+t9aE9C7ymTK3XWGS0hhzsqvb5/S1Ao/iqDQ1bSW6D2yIKTiX1WRBqWhEGTBeCJ +SOhtuoXfnFyyFMc7GUn69nIn4pZNkryjuQDKSgwRT7GiGuocLotlxwjLbhJ+R/iUtB5 0KOXoPTH/u8riUT7hrAp2Z1T0DF1eMBJ10CA4uxZeb5DwRHumTWhaBWxttuqZw6pQVXS VrjfLRUEZOCh6mbChD81Z2UVHA0f755iatDieqfIJ874MAI0N6lNGWpJCBk2EbMASodV ltbno+MIql60VcnW61P0ltpEPVKFBF2XRRNR/h+vEbvRUmzWoSRURwFSjTsrP4jNsWJP 8Ycg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687197319; x=1689789319; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=hBWTNjeJMlttFDcHSgp9h3SX1lBw+yRzvRbqzdyrJP8=; b=abnrFhtRlgKkMeSd1HHAvq6Opb1A0M89s+yQKSrqkVx8VywjN+NN6AOXVT2XCNuamC aWszOy/8OTxrXv2lZQf2vVld/XCfrNdKq2wf3W1BHmeJHJ/PehohBSFf2VrYaCDyelAn JO6iyGQRCkvdUtmaAW4FuLmHK2aFS37khfLC4pfiHu7SHLFnhnn8Mqv/LULW/xoa04vn +NWasUvCGiRa2LasmIj3DT8v1JyHj/p6/nCim9672D+PQFLs98weJRehCR+OBTyhW/K7 nAol36Zhj/2ZVtZxPJ6yLU0jGszRjyyPUeOSqtkOx49PN69d9fR8IBI4NGXpFRjmpIIm vKbw== X-Gm-Message-State: AC+VfDzrKaIYC3OAAe7skpfhKhT0ZwejvLQ8SCj7ismkI8pZGTruCtJZ A9Q4tt/Xq1GdcLOJje0cZes= X-Google-Smtp-Source: ACHHUZ7qoozKh7J9eFRop45rxvVwK19XptidSCGaclhg1P5QpaUIPaj+Cfb2VE403f84vPFnheWBmA== X-Received: by 2002:a17:903:48a:b0:1b5:cbc:b4c with SMTP id jj10-20020a170903048a00b001b50cbc0b4cmr9873635plb.46.1687197318831; Mon, 19 Jun 2023 10:55:18 -0700 (PDT) Received: from [172.31.0.109] ([136.36.130.248]) by smtp.gmail.com with ESMTPSA id m12-20020a1709026bcc00b00186a2274382sm140627plt.76.2023.06.19.10.55.17 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 19 Jun 2023 10:55:18 -0700 (PDT) Message-ID: <2d2c3d14-5e40-303a-2586-13efbcd9292f@gmail.com> Date: Mon, 19 Jun 2023 11:55:16 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [PATCH] Do not allow "x + 0.0" to "x" optimization with -fsignaling-nans Content-Language: en-US To: Richard Biener , Toru Kisuki Cc: "gcc-patches@gcc.gnu.org" References: From: Jeff Law In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On 6/19/23 05:41, Richard Biener via Gcc-patches wrote: > On Mon, Jun 19, 2023 at 12:33 PM Toru Kisuki via Gcc-patches > wrote: >> >> Hi, >> >> >> With -O3 -fsignaling-nans -fno-signed-zeros, compiler should not simplify 'x + 0.0' to 'x'. >> > > OK if you bootstrapped / tested this change. I'm suspect Toru doesn't have write access. So I went ahead and did and x86 bootstrap & regression test which passed. The ChangeLog entry needed fleshing out a bit and fixed a minor whitespace problem in the patch itself. Pushed to the trunk. jeff