From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) by sourceware.org (Postfix) with ESMTPS id CFA533858D28; Mon, 19 Sep 2022 17:29:50 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org CFA533858D28 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-wr1-x434.google.com with SMTP id e16so205375wrx.7; Mon, 19 Sep 2022 10:29:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date; bh=QauXTdomlazaTSLaboes9Mjyg305PMi31EejFHSWInQ=; b=hTIx9Adq/T0opyFFy5zpkS1P1JvZyEI9ONUJ20Qkloy9tPaYr9wXavhu3M/0CvT/5h cdEeU0NoJUcXo588bv5B62DtAziJaN1l8IrdHuZqVPMSFmZ7IoQXglbTmdddOUzv1GZP xYMLT6HHxde4v+Ic2naggU1DyUP6SNf9yy3+dXEXoE1227yxdwy25yq8UO9licuSkKgp Jf6s94Dw5XDyuWgb+bV8Y8EFYEAiH40wWimP5vE8Bh9CoqD4Y5ZF7ofy0AmaWT/T5dSh QvR06d7G5UXFdbNYPSN45Zzty4BNM9kiwDvr2RRJMsDFz0dfnyQnzAQi1u0h4V63lz8b 4DTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date; bh=QauXTdomlazaTSLaboes9Mjyg305PMi31EejFHSWInQ=; b=23JuvTEDh0k5iRxNzvHQjMCMiY/ciSkYJ9fiy60w5l0Z9XBCd3cKuw9Q5o5M1Ii0Ms orXEyNd6AUJwPeEpWtZ+pCqaaCcnHi65EVyiZQQa57u2F/0+kScc6o0EpizvaQcttvw5 cwRcXUsCplgF7WuHjtuSmAdZ1N0Cwf+n4Jl1urKedfLcM5NY2seHRqEa7i8WE8PFfrys oC7+lI3sSqV22nGvLV5s4cSiPMdFXDR1PH0OKgvTLGP8dGFaM01ZU22AJdjIMOO4iz0p lu8nKTbhXQKObGE5tNrWZt0zl+oEE6m6oqUcNvUURY+10/ROSOHptBBJ+KMlXl12lm4F RNyQ== X-Gm-Message-State: ACrzQf3NAMl49ie4ISt6cHnmp7uhe4qeCrTsPXeDbY47lu31ReoeE2CC D8XUkkD4qPTu8GvEazPyshI= X-Google-Smtp-Source: AMsMyM6IBcn9OvaiGkZ+aO2YaUWjcu1s2OQE02hhvu74eLWxDSAtPigfj1pe2Tfb863NIIGk8stExQ== X-Received: by 2002:adf:e110:0:b0:226:2e2c:bfe9 with SMTP id t16-20020adfe110000000b002262e2cbfe9mr11230340wrz.432.1663608588440; Mon, 19 Sep 2022 10:29:48 -0700 (PDT) Received: from smtpclient.apple ([2a01:e34:ec28:8cb0:b98a:8166:9cae:ad49]) by smtp.gmail.com with ESMTPSA id f17-20020a7bcd11000000b003a4efb794d7sm14444203wmj.36.2022.09.19.10.29.47 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Sep 2022 10:29:47 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) Subject: Re: [PATCH] Fortran 2018 rounding modes changes From: FX In-Reply-To: Date: Mon, 19 Sep 2022 19:29:47 +0200 Cc: Fortran , gcc-patches@gcc.gnu.org Content-Transfer-Encoding: quoted-printable Message-Id: <99C0538F-658C-4A7C-92B9-29E0C38A28CE@gmail.com> References: <52A7FAB8-735E-42D8-97A6-7E4C4F108C5E@gmail.com> To: Mikael Morin X-Mailer: Apple Mail (2.3696.120.41.1.1) X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP 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, > Hmm, not really convinced, but that's a possible interpretation, I = guess. It seems to me to be in line with the handling of all other IEEE = intrinsics: the user is responsible for querying support before calling = any relevant routine. I admit that there is no explicit language in the = case of the rounding mode, I will try to find time to ask for an = official interpretation. > My sentence was about IEEE_*S*ET_ROUNDING_MODE actually. > My point that we previously reported an error (at compile time) to a = user that would try to pass a radix 10 while we now silently do... = something else that was requested (i.e. set the radix 2 rounding mode). Oh sorry, I see what you mean and you=E2=80=99re totally right. This is = an easy improvement, and while I believe it is undefined behaviour in = any case, we can easily improve that. > I think it's worth at least documenting that only radix 2 is = supported. That also makes sense. I=E2=80=99ll propose a patch. Thanks, FX=