public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH][pushed] analyzer: document new param
@ 2021-03-12  8:45 Martin Liška
  2021-03-12 13:56 ` David Malcolm
  0 siblings, 1 reply; 8+ messages in thread
From: Martin Liška @ 2021-03-12  8:45 UTC (permalink / raw)
  To: gcc-patches

Identified by my check that compares documentation of params
with content of --help=param output.

Pushed as obvious.
Martin

gcc/ChangeLog:

	* doc/invoke.texi: Add missing param documentation.
---
  gcc/doc/invoke.texi | 4 ++++
  1 file changed, 4 insertions(+)

diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
index 4a3c1e2fa0f..7a368959e5e 100644
--- a/gcc/doc/invoke.texi
+++ b/gcc/doc/invoke.texi
@@ -14362,6 +14362,10 @@ recurse deeper.
  The maximum depth of a symbolic value, before approximating
  the value as unknown.
  
+@item analyzer-max-infeasible-edges
+The maximum number of infeasible edges to reject before declaring
+a diagnostic as infeasible.
+
  @item gimple-fe-computed-hot-bb-threshold
  The number of executions of a basic block which is considered hot.
  The parameter is used only in GIMPLE FE.
-- 
2.30.1


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH][pushed] analyzer: document new param
  2021-03-12  8:45 [PATCH][pushed] analyzer: document new param Martin Liška
@ 2021-03-12 13:56 ` David Malcolm
  2021-03-12 14:02   ` Martin Liška
  0 siblings, 1 reply; 8+ messages in thread
From: David Malcolm @ 2021-03-12 13:56 UTC (permalink / raw)
  To: Martin Liška, gcc-patches

On Fri, 2021-03-12 at 09:45 +0100, Martin Liška wrote:
> Identified by my check that compares documentation of params
> with content of --help=param output.
> 
> Pushed as obvious.
> Martin

Thanks.

Which check is this, BTW?  (presumably this is something I should add
to my patch testing workflow)

Dave

> gcc/ChangeLog:
> 
>         * doc/invoke.texi: Add missing param documentation.
> ---
>   gcc/doc/invoke.texi | 4 ++++
>   1 file changed, 4 insertions(+)
> 
> diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
> index 4a3c1e2fa0f..7a368959e5e 100644
> --- a/gcc/doc/invoke.texi
> +++ b/gcc/doc/invoke.texi
> @@ -14362,6 +14362,10 @@ recurse deeper.
>   The maximum depth of a symbolic value, before approximating
>   the value as unknown.
>   
> +@item analyzer-max-infeasible-edges
> +The maximum number of infeasible edges to reject before declaring
> +a diagnostic as infeasible.
> +
>   @item gimple-fe-computed-hot-bb-threshold
>   The number of executions of a basic block which is considered hot.
>   The parameter is used only in GIMPLE FE.



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH][pushed] analyzer: document new param
  2021-03-12 13:56 ` David Malcolm
@ 2021-03-12 14:02   ` Martin Liška
  2021-03-15 20:57     ` Martin Sebor
  0 siblings, 1 reply; 8+ messages in thread
From: Martin Liška @ 2021-03-12 14:02 UTC (permalink / raw)
  To: David Malcolm, gcc-patches

On 3/12/21 2:56 PM, David Malcolm wrote:
> On Fri, 2021-03-12 at 09:45 +0100, Martin Liška wrote:
>> Identified by my check that compares documentation of params
>> with content of --help=param output.
>>
>> Pushed as obvious.
>> Martin
> 
> Thanks.
> 
> Which check is this, BTW?  (presumably this is something I should add
> to my patch testing workflow)

./gcc/xgcc -Bgcc --help=param &>params.txt
../contrib/check-params-in-docs.py ../gcc/doc/invoke.texi params.txt

Cheers,
Martin

> 
> Dave
> 
>> gcc/ChangeLog:
>>
>>          * doc/invoke.texi: Add missing param documentation.
>> ---
>>    gcc/doc/invoke.texi | 4 ++++
>>    1 file changed, 4 insertions(+)
>>
>> diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
>> index 4a3c1e2fa0f..7a368959e5e 100644
>> --- a/gcc/doc/invoke.texi
>> +++ b/gcc/doc/invoke.texi
>> @@ -14362,6 +14362,10 @@ recurse deeper.
>>    The maximum depth of a symbolic value, before approximating
>>    the value as unknown.
>>    
>> +@item analyzer-max-infeasible-edges
>> +The maximum number of infeasible edges to reject before declaring
>> +a diagnostic as infeasible.
>> +
>>    @item gimple-fe-computed-hot-bb-threshold
>>    The number of executions of a basic block which is considered hot.
>>    The parameter is used only in GIMPLE FE.
> 
> 


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH][pushed] analyzer: document new param
  2021-03-12 14:02   ` Martin Liška
@ 2021-03-15 20:57     ` Martin Sebor
  2021-03-16  9:08       ` Martin Liška
  0 siblings, 1 reply; 8+ messages in thread
From: Martin Sebor @ 2021-03-15 20:57 UTC (permalink / raw)
  To: Martin Liška, David Malcolm, gcc-patches

On 3/12/21 7:02 AM, Martin Liška wrote:
> On 3/12/21 2:56 PM, David Malcolm wrote:
>> On Fri, 2021-03-12 at 09:45 +0100, Martin Liška wrote:
>>> Identified by my check that compares documentation of params
>>> with content of --help=param output.
>>>
>>> Pushed as obvious.
>>> Martin
>>
>> Thanks.
>>
>> Which check is this, BTW?  (presumably this is something I should add
>> to my patch testing workflow)
> 
> ./gcc/xgcc -Bgcc --help=param &>params.txt
> ../contrib/check-params-in-docs.py ../gcc/doc/invoke.texi params.txt

Any plans to integrate it into the testsuite?  (That way we presumably
wouldn't need to remember to run it by hand.)

Martin

> 
> Cheers,
> Martin
> 
>>
>> Dave
>>
>>> gcc/ChangeLog:
>>>
>>>          * doc/invoke.texi: Add missing param documentation.
>>> ---
>>>    gcc/doc/invoke.texi | 4 ++++
>>>    1 file changed, 4 insertions(+)
>>>
>>> diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
>>> index 4a3c1e2fa0f..7a368959e5e 100644
>>> --- a/gcc/doc/invoke.texi
>>> +++ b/gcc/doc/invoke.texi
>>> @@ -14362,6 +14362,10 @@ recurse deeper.
>>>    The maximum depth of a symbolic value, before approximating
>>>    the value as unknown.
>>> +@item analyzer-max-infeasible-edges
>>> +The maximum number of infeasible edges to reject before declaring
>>> +a diagnostic as infeasible.
>>> +
>>>    @item gimple-fe-computed-hot-bb-threshold
>>>    The number of executions of a basic block which is considered hot.
>>>    The parameter is used only in GIMPLE FE.
>>
>>
> 


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH][pushed] analyzer: document new param
  2021-03-15 20:57     ` Martin Sebor
@ 2021-03-16  9:08       ` Martin Liška
  2021-03-16 14:51         ` Martin Sebor
  0 siblings, 1 reply; 8+ messages in thread
From: Martin Liška @ 2021-03-16  9:08 UTC (permalink / raw)
  To: Martin Sebor, David Malcolm, gcc-patches

On 3/15/21 9:57 PM, Martin Sebor wrote:
> Any plans to integrate it into the testsuite?  (That way we presumably
> wouldn't need to remember to run it by hand.)

Likely not, I'm not so big friend with DejaGNU.
Are you willing to help me with that?

Thanks,
Martin

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH][pushed] analyzer: document new param
  2021-03-16  9:08       ` Martin Liška
@ 2021-03-16 14:51         ` Martin Sebor
  2021-03-16 15:09           ` testsuite: automatically checking for param documentation David Malcolm
  0 siblings, 1 reply; 8+ messages in thread
From: Martin Sebor @ 2021-03-16 14:51 UTC (permalink / raw)
  To: Martin Liška, David Malcolm, gcc-patches

On 3/16/21 3:08 AM, Martin Liška wrote:
> On 3/15/21 9:57 PM, Martin Sebor wrote:
>> Any plans to integrate it into the testsuite?  (That way we presumably
>> wouldn't need to remember to run it by hand.)
> 
> Likely not, I'm not so big friend with DejaGNU.
> Are you willing to help me with that?

I'm not a fan either but that's what we've got.  And sure, I'll help
if/when I can.  I think it should be "straightforward" to rewrite
the script in Expect (as much as anything is straightforward in
Expect).  Or, it could stay as is and be invoked from some .exp
file in testsuite.  Although is Python a required prerequisite
for running the testsuite?  If not, it might be better to either
rewrite the script in something that is (e.g., AWK) or in Expect.

Martin

> 
> Thanks,
> Martin


^ permalink raw reply	[flat|nested] 8+ messages in thread

* testsuite: automatically checking for param documentation
  2021-03-16 14:51         ` Martin Sebor
@ 2021-03-16 15:09           ` David Malcolm
  2021-03-16 15:14             ` Martin Liška
  0 siblings, 1 reply; 8+ messages in thread
From: David Malcolm @ 2021-03-16 15:09 UTC (permalink / raw)
  To: Martin Sebor, Martin Liška, gcc-patches

[updating subject for greater visibility]

On Tue, 2021-03-16 at 08:51 -0600, Martin Sebor wrote:
> On 3/16/21 3:08 AM, Martin Liška wrote:
> > On 3/15/21 9:57 PM, Martin Sebor wrote:
> > > Any plans to integrate it into the testsuite?  (That way we presu
> > > mably
> > > wouldn't need to remember to run it by hand.)
> > 
> > Likely not, I'm not so big friend with DejaGNU.
> > Are you willing to help me with that?
> 
> I'm not a fan either but that's what we've got.  And sure, I'll help
> if/when I can.  I think it should be "straightforward" to rewrite
> the script in Expect (as much as anything is straightforward in
> Expect).  Or, it could stay as is and be invoked from some .exp
> file in testsuite.  Although is Python a required prerequisite
> for running the testsuite?  If not, it might be better to either
> rewrite the script in something that is (e.g., AWK) or in Expect.

I find it painful writing non-trivial logic in Tcl.

We already have run-gcov-pytest in gcov.exp which calls out to a
python3 script, checking if python3 is supported, and bailing with
UNSUPPORTED otherwise.

FWIW I think it's reasonable to have something similar for this case.

Dave


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: testsuite: automatically checking for param documentation
  2021-03-16 15:09           ` testsuite: automatically checking for param documentation David Malcolm
@ 2021-03-16 15:14             ` Martin Liška
  0 siblings, 0 replies; 8+ messages in thread
From: Martin Liška @ 2021-03-16 15:14 UTC (permalink / raw)
  To: David Malcolm, Martin Sebor, gcc-patches

On 3/16/21 4:09 PM, David Malcolm wrote:
> [updating subject for greater visibility]
> 
> On Tue, 2021-03-16 at 08:51 -0600, Martin Sebor wrote:
>> On 3/16/21 3:08 AM, Martin Liška wrote:
>>> On 3/15/21 9:57 PM, Martin Sebor wrote:
>>>> Any plans to integrate it into the testsuite?  (That way we presu
>>>> mably
>>>> wouldn't need to remember to run it by hand.)
>>>
>>> Likely not, I'm not so big friend with DejaGNU.
>>> Are you willing to help me with that?
>>
>> I'm not a fan either but that's what we've got.  And sure, I'll help
>> if/when I can.  I think it should be "straightforward" to rewrite
>> the script in Expect (as much as anything is straightforward in
>> Expect).  Or, it could stay as is and be invoked from some .exp
>> file in testsuite.  Although is Python a required prerequisite
>> for running the testsuite?  If not, it might be better to either
>> rewrite the script in something that is (e.g., AWK) or in Expect.
> 
> I find it painful writing non-trivial logic in Tcl.

Me too!

> 
> We already have run-gcov-pytest in gcov.exp which calls out to a
> python3 script, checking if python3 is supported, and bailing with
> UNSUPPORTED otherwise.
> 
> FWIW I think it's reasonable to have something similar for this case.

Yep, let's run the existing Python script.

Martin

> 
> Dave
> 


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-03-16 15:14 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-12  8:45 [PATCH][pushed] analyzer: document new param Martin Liška
2021-03-12 13:56 ` David Malcolm
2021-03-12 14:02   ` Martin Liška
2021-03-15 20:57     ` Martin Sebor
2021-03-16  9:08       ` Martin Liška
2021-03-16 14:51         ` Martin Sebor
2021-03-16 15:09           ` testsuite: automatically checking for param documentation David Malcolm
2021-03-16 15:14             ` Martin Liška

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).