From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qv1-xf2e.google.com (mail-qv1-xf2e.google.com [IPv6:2607:f8b0:4864:20::f2e]) by sourceware.org (Postfix) with ESMTPS id 23FE83858D1E for ; Fri, 30 Sep 2022 22:51:39 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 23FE83858D1E 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-qv1-xf2e.google.com with SMTP id jy22so3151605qvb.4 for ; Fri, 30 Sep 2022 15:51:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=i2LyqCcHdFKumhNMAOpTNc7FvWMQhUCbPLbdO4XXGeA=; b=RO9F5EecutPRV1EqMYEOWqBCzmPpMisQsP23QhtKoJAAIFhAa6KYX0yAnqMBErWa/U febso8A38NYaMoQBS16ZSWvGsNUCmnZCshFPlPonhmlxqOZKz2sn1Wgnd2dkkzENWYZ5 aYQ1k8ZwgcYRf1Hr+JOrkGi74g5k2bvmJKanPoe2HTfkif6YNeumrLXqkOAEj3sl+Wqk GI8pO7GfxM/Myl9BBE2k4cB/i+u48LlZvgZELSnHQtRU7QHHJ3TfgOIkOXgaMrnjWsx0 tBatutKx8kOYTRV62keIH3BWR5x//NK1O13PG7i8Yy1DbPZ5Gmig9K46ljULBNmaMp+W QsNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=i2LyqCcHdFKumhNMAOpTNc7FvWMQhUCbPLbdO4XXGeA=; b=lrvTO71qt0klzeXQMZzBERUynbjLxy4P3gQl4YBdfaypCiAGgUUbpCw5HNrXUdMbEM 4zCyo0VNBuoNMoaAxpMbIrJMFPiNUlmC6VL48cNvsa7b1Es8H2rotIC1BrNf/E40ujBP 7aX9gP0/aJ6krY6UMiQEnWpd5zqHLNEralh6P+Qe1mzd7NX623PZPqWfY5RFH26zcl4I zj0utCrehRcAfCaf5Dex63Kv9wmG0QJcO0ZuJUeOoJHsAuM6pP6nFoM5yeIKcedBAPRa LxCqWNDv9U9SArKtHVjnGDgG3PBNChnsWhn+eJjEmlhMek+owEAFViruYCmfHCLAC0wt +riQ== X-Gm-Message-State: ACrzQf2ClzPJSVT0qrpz7DMLgGCqLBiPIHWuxUkQC7B8tezyq4NCkfQE i//CS0XFi1tNtbjl0C9buoHKBm9g98ulAO27Ry/LqBfwsns= X-Google-Smtp-Source: AMsMyM7tR6T3c70cc+7PYumFulahqnf2EN2fE9RBzg8nuMtG0MnV80BnWbR3qgLJNAzgHz/fsEXIZnJ4ZP1gZ2wF2mc= X-Received: by 2002:a05:6214:411a:b0:4ac:9402:e7de with SMTP id kc26-20020a056214411a00b004ac9402e7demr8979224qvb.128.1664578297926; Fri, 30 Sep 2022 15:51:37 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: "H.J. Lu" Date: Fri, 30 Sep 2022 15:51:02 -0700 Message-ID: Subject: Re: [PATCH] Document -fexcess-precision=16 in tm.texi To: Palmer Dabbelt Cc: sandra@codesourcery.com, gcc-patches@gcc.gnu.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-3024.0 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,GIT_PATCH_0,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: On Fri, Sep 30, 2022 at 3:25 PM Palmer Dabbelt wrote: > > On Sat, 24 Sep 2022 19:13:36 PDT (-0700), sandra@codesourcery.com wrote: > > On 9/18/22 02:47, Palmer Dabbelt wrote: > >> On Fri, 09 Sep 2022 02:46:40 PDT (-0700), Palmer Dabbelt wrote: > >>> I just happened to stuble on this one while trying to sort out the > >>> RISC-V bits. > >>> > >>> gcc/ChangeLog > >>> > >>> * doc/tm.texi (TARGET_C_EXCESS_PRECISION): Add 16. > >>> --- > >>> gcc/doc/tm.texi | 2 +- > >>> 1 file changed, 1 insertion(+), 1 deletion(-) > >>> > >>> diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi > >>> index 858bfb80cec..7590924f2ca 100644 > >>> --- a/gcc/doc/tm.texi > >>> +++ b/gcc/doc/tm.texi > >>> @@ -1009,7 +1009,7 @@ of the excess precision explicitly added. For > >>> @code{EXCESS_PRECISION_TYPE_FLOAT16}, and > >>> @code{EXCESS_PRECISION_TYPE_FAST}, the target should return the > >>> explicit excess precision that should be added depending on the > >>> -value set for @option{-fexcess-precision=@r{[}standard@r{|}fast@r{]}}. > >>> +value set for > >>> @option{-fexcess-precision=@r{[}standard@r{|}fast@r{|}16@r{]}}. > >>> Note that unpredictable explicit excess precision does not make sense, > >>> so a target should never return @code{FLT_EVAL_METHOD_UNPREDICTABLE} > >>> when @var{type} is @code{EXCESS_PRECISION_TYPE_STANDARD}, > >> > >> Just pinging this one as I'm not sure if it's OK to self-approve -- no > >> rush on my end, I already figured it out so I don't need the > >> documentation any more. > > > > This is fine, looks like a trivial correction. > > Thanks, committed. tm.texi is a generated file. I am checking in this patch to restore bootstrap. -- H.J. -- diff --git a/gcc/target.def b/gcc/target.def index 4d49ffc2c88..a3d3b04a165 100644 --- a/gcc/target.def +++ b/gcc/target.def @@ -6181,7 +6181,7 @@ of the excess precision explicitly added. For\n\ @code{EXCESS_PRECISION_TYPE_FLOAT16}, and\n\ @code{EXCESS_PRECISION_TYPE_FAST}, the target should return the\n\ explicit excess precision that should be added depending on the\n\ -value set for @option{-fexcess-precision=@r{[}standard@r{|}fast@r{]}}.\n\ +value set for @option{-fexcess-precision=@r{[}standard@r{|}fast@r{|}16@r{]}}.\n\ Note that unpredictable explicit excess precision does not make sense,\n\ so a target should never return @code{FLT_EVAL_METHOD_UNPREDICTABLE}\n\ when @var{type} is @code{EXCESS_PRECISION_TYPE_STANDARD},\n\