public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug driver/90983] manual documents `-Wno-stack-usage` flag, but it is unrecognized
[not found] <bug-90983-4@http.gcc.gnu.org/bugzilla/>
@ 2020-04-17 15:53 ` Torsten at Robitzki dot de
2020-04-17 16:54 ` msebor at gcc dot gnu.org
` (7 subsequent siblings)
8 siblings, 0 replies; 9+ messages in thread
From: Torsten at Robitzki dot de @ 2020-04-17 15:53 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90983
--- Comment #3 from Torsten Robitzki <Torsten at Robitzki dot de> ---
Is there a workaround to disable that warning (once it was enabled) for the
case, gcc detects an unbound stack usage?
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug driver/90983] manual documents `-Wno-stack-usage` flag, but it is unrecognized
[not found] <bug-90983-4@http.gcc.gnu.org/bugzilla/>
2020-04-17 15:53 ` [Bug driver/90983] manual documents `-Wno-stack-usage` flag, but it is unrecognized Torsten at Robitzki dot de
@ 2020-04-17 16:54 ` msebor at gcc dot gnu.org
2020-04-17 17:35 ` Torsten at Robitzki dot de
` (6 subsequent siblings)
8 siblings, 0 replies; 9+ messages in thread
From: msebor at gcc dot gnu.org @ 2020-04-17 16:54 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90983
--- Comment #4 from Martin Sebor <msebor at gcc dot gnu.org> ---
Using a very large -Wstack-usage argument should effectively disable the
warning. E.g., -Wstack-usage=4EiB or -Wstack-usage=$(getconf ULONG_MAX).
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug driver/90983] manual documents `-Wno-stack-usage` flag, but it is unrecognized
[not found] <bug-90983-4@http.gcc.gnu.org/bugzilla/>
2020-04-17 15:53 ` [Bug driver/90983] manual documents `-Wno-stack-usage` flag, but it is unrecognized Torsten at Robitzki dot de
2020-04-17 16:54 ` msebor at gcc dot gnu.org
@ 2020-04-17 17:35 ` Torsten at Robitzki dot de
2020-04-17 21:58 ` msebor at gcc dot gnu.org
` (5 subsequent siblings)
8 siblings, 0 replies; 9+ messages in thread
From: Torsten at Robitzki dot de @ 2020-04-17 17:35 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90983
--- Comment #5 from Torsten Robitzki <Torsten at Robitzki dot de> ---
(In reply to Martin Sebor from comment #4)
> Using a very large -Wstack-usage argument should effectively disable the
> warning. E.g., -Wstack-usage=4EiB or -Wstack-usage=$(getconf ULONG_MAX).
Unfortunately, not when the stack usage is reported as unbound:
#include <alloca.h>
int foo(int i)
{
void* p = alloca(i);
return p != 0;
}
int main()
{
foo(4000);
return 0;
}
$ arm-none-eabi-gcc t.c -Wstack-usage=200 -Wstack-usage=4EiB
t.c: In function 'foo':
t.c:3:5: warning: stack usage might be unbounded [-Wstack-usage=]
3 | int foo(int i)
| ^~~
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug driver/90983] manual documents `-Wno-stack-usage` flag, but it is unrecognized
[not found] <bug-90983-4@http.gcc.gnu.org/bugzilla/>
` (2 preceding siblings ...)
2020-04-17 17:35 ` Torsten at Robitzki dot de
@ 2020-04-17 21:58 ` msebor at gcc dot gnu.org
2020-04-20 6:39 ` Torsten at Robitzki dot de
` (4 subsequent siblings)
8 siblings, 0 replies; 9+ messages in thread
From: msebor at gcc dot gnu.org @ 2020-04-17 21:58 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90983
Martin Sebor <msebor at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Assignee|unassigned at gcc dot gnu.org |msebor at gcc dot gnu.org
Status|NEW |ASSIGNED
--- Comment #6 from Martin Sebor <msebor at gcc dot gnu.org> ---
The argument value must be greater than or equal to ULONG_MAX on the host. I
guess 1EiB is too small. Some of the other options use
18446744073709551615EiB. For example, -Wno-alloca-larger-than is an alias for
-Walloca-larger-than=18446744073709551615EiB.
But let me fix -Wno-frame-larger-than.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug driver/90983] manual documents `-Wno-stack-usage` flag, but it is unrecognized
[not found] <bug-90983-4@http.gcc.gnu.org/bugzilla/>
` (3 preceding siblings ...)
2020-04-17 21:58 ` msebor at gcc dot gnu.org
@ 2020-04-20 6:39 ` Torsten at Robitzki dot de
2020-04-21 19:39 ` [Bug driver/90983] [9/10 Regression] " msebor at gcc dot gnu.org
` (3 subsequent siblings)
8 siblings, 0 replies; 9+ messages in thread
From: Torsten at Robitzki dot de @ 2020-04-20 6:39 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90983
--- Comment #7 from Torsten Robitzki <Torsten at Robitzki dot de> ---
Thanks, that workaround works for me.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug driver/90983] [9/10 Regression] manual documents `-Wno-stack-usage` flag, but it is unrecognized
[not found] <bug-90983-4@http.gcc.gnu.org/bugzilla/>
` (4 preceding siblings ...)
2020-04-20 6:39 ` Torsten at Robitzki dot de
@ 2020-04-21 19:39 ` msebor at gcc dot gnu.org
2020-04-23 23:53 ` cvs-commit at gcc dot gnu.org
` (2 subsequent siblings)
8 siblings, 0 replies; 9+ messages in thread
From: msebor at gcc dot gnu.org @ 2020-04-21 19:39 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90983
Martin Sebor <msebor at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to fail| |10.0, 9.2.0
Summary|manual documents |[9/10 Regression] manual
|`-Wno-stack-usage` flag, |documents
|but it is unrecognized |`-Wno-stack-usage` flag,
| |but it is unrecognized
Keywords|documentation |patch
--- Comment #8 from Martin Sebor <msebor at gcc dot gnu.org> ---
Patch: https://gcc.gnu.org/pipermail/gcc-patches/2020-April/544246.html
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug driver/90983] [9/10 Regression] manual documents `-Wno-stack-usage` flag, but it is unrecognized
[not found] <bug-90983-4@http.gcc.gnu.org/bugzilla/>
` (5 preceding siblings ...)
2020-04-21 19:39 ` [Bug driver/90983] [9/10 Regression] " msebor at gcc dot gnu.org
@ 2020-04-23 23:53 ` cvs-commit at gcc dot gnu.org
2020-04-23 23:54 ` [Bug driver/90983] [9 " msebor at gcc dot gnu.org
2022-03-17 19:59 ` msebor at gcc dot gnu.org
8 siblings, 0 replies; 9+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2020-04-23 23:53 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90983
--- Comment #9 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Martin Sebor <msebor@gcc.gnu.org>:
https://gcc.gnu.org/g:ae962e573ea5063fda7e86f93d9622e64cea9a7e
commit r10-7934-gae962e573ea5063fda7e86f93d9622e64cea9a7e
Author: Martin Sebor <msebor@redhat.com>
Date: Thu Apr 23 17:49:01 2020 -0600
PR driver/90983 - manual documents `-Wno-stack-usage` flag but it is
unrecognized
gcc/ChangeLog:
PR driver/90983
* common.opt (-Wno-frame-larger-than): New option.
(-Wno-larger-than, -Wno-stack-usage): Same.
gcc/testsuite/ChangeLog:
PR driver/90983
* gcc.dg/Wframe-larger-than-3.c: New test.
* gcc.dg/Wlarger-than4.c: New test.
* gcc.dg/Wstack-usage.c: New test.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug driver/90983] [9 Regression] manual documents `-Wno-stack-usage` flag, but it is unrecognized
[not found] <bug-90983-4@http.gcc.gnu.org/bugzilla/>
` (6 preceding siblings ...)
2020-04-23 23:53 ` cvs-commit at gcc dot gnu.org
@ 2020-04-23 23:54 ` msebor at gcc dot gnu.org
2022-03-17 19:59 ` msebor at gcc dot gnu.org
8 siblings, 0 replies; 9+ messages in thread
From: msebor at gcc dot gnu.org @ 2020-04-23 23:54 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90983
Martin Sebor <msebor at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to fail|10.0 |
Target Milestone|--- |9.5
Summary|[9/10 Regression] manual |[9 Regression] manual
|documents |documents
|`-Wno-stack-usage` flag, |`-Wno-stack-usage` flag,
|but it is unrecognized |but it is unrecognized
--- Comment #10 from Martin Sebor <msebor at gcc dot gnu.org> ---
Fixed for GCC 10.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug driver/90983] [9 Regression] manual documents `-Wno-stack-usage` flag, but it is unrecognized
[not found] <bug-90983-4@http.gcc.gnu.org/bugzilla/>
` (7 preceding siblings ...)
2020-04-23 23:54 ` [Bug driver/90983] [9 " msebor at gcc dot gnu.org
@ 2022-03-17 19:59 ` msebor at gcc dot gnu.org
8 siblings, 0 replies; 9+ messages in thread
From: msebor at gcc dot gnu.org @ 2022-03-17 19:59 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90983
Martin Sebor <msebor at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
--- Comment #11 from Martin Sebor <msebor at gcc dot gnu.org> ---
Fixed, won't backport.
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2022-03-17 19:59 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-90983-4@http.gcc.gnu.org/bugzilla/>
2020-04-17 15:53 ` [Bug driver/90983] manual documents `-Wno-stack-usage` flag, but it is unrecognized Torsten at Robitzki dot de
2020-04-17 16:54 ` msebor at gcc dot gnu.org
2020-04-17 17:35 ` Torsten at Robitzki dot de
2020-04-17 21:58 ` msebor at gcc dot gnu.org
2020-04-20 6:39 ` Torsten at Robitzki dot de
2020-04-21 19:39 ` [Bug driver/90983] [9/10 Regression] " msebor at gcc dot gnu.org
2020-04-23 23:53 ` cvs-commit at gcc dot gnu.org
2020-04-23 23:54 ` [Bug driver/90983] [9 " msebor at gcc dot gnu.org
2022-03-17 19:59 ` msebor at gcc dot gnu.org
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).