From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mout.gmx.net (mout.gmx.net [212.227.15.19]) by sourceware.org (Postfix) with ESMTPS id 1DF493857C51; Wed, 6 Mar 2024 17:09:53 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 1DF493857C51 Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=gmx.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmx.de ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 1DF493857C51 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=212.227.15.19 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1709744995; cv=none; b=bnNSlMl7GTHTLv9ZbnfktiZUD0Oiy7B92aTz1S43lbx4ABsK+BtYwXAw+1krzDQJ4uIAgdsqsmsJKnuCXRCNKpGxciXjxg1o2i/WKKWS/6SiQN83ZCxxVeA2Kzg90li7Pe7+8oPtu0ZMlDrRsmrp3Ok6B3+CtuHqDTIE09WQPVU= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1709744995; c=relaxed/simple; bh=J//XX/+oVD+kaW9GCnJv4mLuAhaki+Vg3krIoao9qNc=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From; b=JJdG2oNsjBTKnea0lqo6+qUMz3Mq2zgBv4K/gH5nhp9UDgAYoOF8K98WO41MgONAheDNRtmc9HnacrzL+D8uZIemF9DUDTsV8oPydXaJbj/4JEOSUtvnjBn+Kq6yja1VPalvsmM/fg01C4r4TrOvASHWNOLL4slzrk+GiSycPig= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1709744991; x=1710349791; i=anlauf@gmx.de; bh=J//XX/+oVD+kaW9GCnJv4mLuAhaki+Vg3krIoao9qNc=; h=X-UI-Sender-Class:Date:Subject:To:Cc:References:From: In-Reply-To; b=AYxksrmZ20D5P6W9EZEyM4ya98L+WeUQ5EaDJLr+DMTIxeK7t6eP1vYgWzmjW9Zu IOGkyMOTQ7rszePaeKznP4JQPXgqoCzQLA1DH6wdtZmFUJuxErTtWn9R0+57q+1zp B4URX0ScHwXX1YvL4sk3+/9TIAX8Byk7RvJ/9+57KOmhWbMHH6uJXGc12ap0V2BNQ q3oJZy4Shc3bzebHyAtKdO5W/zVAMBIjvsAJottMV4pOTR0iC77gU/4ch9+FnJTF9 JPkAhTpmOt7OOwCo6CvtKMQWRVL7plGdwgEoBGofo5r9VDx56JOQEAIQQoVvblJrQ SLk7ZUJVoSyues/gxw== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [192.168.178.29] ([79.232.158.97]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MWih0-1rJmBb00lM-00X70J; Wed, 06 Mar 2024 18:09:51 +0100 Message-ID: Date: Wed, 6 Mar 2024 18:09:49 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] Fortran: error recovery while simplifying expressions [PR103707, PR106987] To: Paul Richard Thomas Cc: fortran , gcc-patches Newsgroups: gmane.comp.gcc.patches,gmane.comp.gcc.fortran References: Content-Language: en-US From: Harald Anlauf In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:+bIfQcAkPmC+qXb62pxcsk8rCy5TDgTkTv1WCUDRt4RMfFJXMgW pFuNUvwVaDRQUIagmzb5v/AZVCrEVcOVjSP1jBVufK6oDUGQV7Susinvlp6pmdBa29zyD44 NIDXxAgauysNjV2U8WmzKl+EYauXHSBzQ6L4C4o82XNkvGkOX7qTJX4DpJ4BR0jvAWek2EE f14txpJF3X1wjxHdjRNyQ== UI-OutboundReport: notjunk:1;M01:P0:DcR/pHQVfn4=;QlJNUh+IL+2KFLjJxdiUkR6AdUQ XKXL1TIJklXwO4zcN7+MgYqXgOH1SW3X8aiknmbwtyuFJlm1UPf2s47XUQGPw2eQsNAiIgAaz Gf396cOJuf8OJ2Lj11SypF9y9AHWKlXVawAgetyR/I8vcVuq6s05eR/Lk/CkB5sF+1KxhE5dD FmEsDoQpx+3hdriUkvKEjY6mTb7PTW5luVYwQnDrQGIOcAsbHDqO1iXoWFBJ4BuFP6H+IPWZ8 9GOdlpcI33fVEHsYzcLGI0OIEpiInm3Lamkgfgr9LnsC0jraUnbHXuYxWMS7rqCQqjlTssjJx VrL44yyVp4/yq9TjX6yhcFd3QgY6pb/8oDmnRnYW9S4E7b3hNA98uaeDDGbH5IlOeAhd9l73v 93BFGEve4lsQvAfA4cOxj3SpV5AYjqZinWl48hWv8y7QvfdtTxk+53kB5nKULchlk1rwM5Bvi mFtaEje9x8Ovs1eiToyRXlyVt9OdajsdsjZA0TkodPNEPscZ3JHh5k//n2rrg1ok1dLEpy9MS dU+gIV4hkAcHxcQC3UE+o6fGzKsk0RxotsHIG5y6q+i43oCuiFApBUQZw64eh4OkuWJ8wQWYK QRECf/F1io53JZiK6PF59QbI5mBxgmxwUefT6z+mDANnfhMUG61t/JFzDn6nNfDNK+kQFToiK Ys9rijSANWEaOy698xJtRJi4zjL+1zCvAPPanRdK7vi0HbHpIM6IrmADlU8UpoEMDd8iLeOjI WcwfqxL5mnOriJniGRvivxHf2/mqqsOgIhUB/5atyKB/JNFrP2wpEWYM8t2yjrI44gdxlFlS2 KKWABcNDrGrRV66bwN1/5VSROYi9XtEL62omx7osHQQFA= X-Spam-Status: No, score=-4.8 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,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: Hi Paul, thanks for reviewing the patch, and your trust in me :-) Backporting to 13-branch seems easily feasible (needs another small queued backport on which this patch depends), but going further is definitely out of the question... Will wait a couple of weeks though. Harald On 3/6/24 11:51, Paul Richard Thomas wrote: > Hi Harald, > > This all looks good to me. OK for mainline and, according to intestinal > fortitude on your part, earlier branches. > > Thanks > > Paul > > > On Tue, 5 Mar 2024 at 21:24, Harald Anlauf wrote: > >> Dear all, >> >> error recovery on arithmetic errors during simplification has bugged >> me for a long time, especially since the occurence of ICEs depended >> on whether -frange-check is specified or not, whether array ctors >> were involved, etc. >> >> I've now come up with the attached patch that classifies the arithmetic >> result codes into "hard" and "soft" errors. >> >> A "soft" error means that it is an overflow or other exception (e.g. Na= N) >> that is ignored with -fno-range-check. After the patch, a soft error >> will not stop simplification (a hard one will), and error status will b= e >> passed along. >> >> I took this opportunity to change the emitted error for division by zer= o >> for real and complex division dependent on whether the numerator is >> regular or not. This makes e.g. (0.)/0 a NaN and now says so, in >> accordance with some other brands. >> >> Regtested on x86_64-pc-linux-gnu. OK for mainline? >> >> Other comments? >> >> Thanks, >> Harald >> >> >