On 3/5/19 5:01 PM, Jakub Jelinek wrote: > On Tue, Mar 05, 2019 at 04:53:54PM +0100, Martin Liška wrote: >> Hi. >> >> The param was added by Jakub. Should I mention it in invoke.texi? > > It is meant solely for the testsuite, so I wouldn't document it. > But if others disagree, I'm not strongly opposed to that, but we then should > say so in the documentation.
Ah, I see. Then let me suggest patch that will ignore the option in contrib/check-params-in-docs.py script? Martin > >> 2019-03-05 Martin Liska <mli...@suse.cz> >> >> * doc/invoke.texi: Mention logical-op-non-short-circuit >> param. >> --- >> gcc/doc/invoke.texi | 3 +++ >> 1 file changed, 3 insertions(+) >> >> > >> diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi >> index df0883f2fc9..d9be34da077 100644 >> --- a/gcc/doc/invoke.texi >> +++ b/gcc/doc/invoke.texi >> @@ -12044,6 +12044,9 @@ considered for SLP vectorization. >> @item avoid-fma-max-bits >> Maximum number of bits for which we avoid creating FMAs. >> >> +@item logical-op-non-short-circuit >> +True if a non-short-circuit operation is optimal. >> + >> @item sms-loop-average-count-threshold >> A threshold on the average loop count considered by the swing modulo >> scheduler. >> >> > > > Jakub >
>From 97ab8910d4a6c546cedece49880fce1a85ace1df Mon Sep 17 00:00:00 2001 From: marxin <mli...@suse.cz> Date: Wed, 6 Mar 2019 10:16:54 +0100 Subject: [PATCH] Ignore a param in check-params-in-docs.py contrib/ChangeLog: 2019-03-06 Martin Liska <mli...@suse.cz> * check-params-in-docs.py: Ignore a param. --- contrib/check-params-in-docs.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/contrib/check-params-in-docs.py b/contrib/check-params-in-docs.py index eb36f4b8654..6cff090dc4c 100755 --- a/contrib/check-params-in-docs.py +++ b/contrib/check-params-in-docs.py @@ -39,6 +39,7 @@ parser.add_argument('params_output') args = parser.parse_args() +ignored = set(['logical-op-non-short-circuit']) params = {} for line in open(args.params_output).readlines(): @@ -56,8 +57,8 @@ token = '@item ' texi = [x[len(token):] for x in texi if x.startswith(token)] sorted_texi = sorted(texi) -texi_set = set(texi) -params_set = set(params.keys()) +texi_set = set(texi) - ignored +params_set = set(params.keys()) - ignored extra = texi_set - params_set if len(extra): -- 2.21.0