This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/71905] Values passed to -Wlarger-than= and -Wframe-larger-than= and -Wstack-usage= should accept KB and MB suffixes
- From: "egallager at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 20 Jul 2017 20:26:22 +0000
- Subject: [Bug middle-end/71905] Values passed to -Wlarger-than= and -Wframe-larger-than= and -Wstack-usage= should accept KB and MB suffixes
- Auto-submitted: auto-generated
- References: <bug-71905-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71905
egallager at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2017-07-20
CC| |egallager at gcc dot gnu.org
Summary|bogus -Wlarger-than=N and |Values passed to
|-Wframe-larger-than= |-Wlarger-than= and
|-Wstack-usage= warnings on |-Wframe-larger-than= and
|small objects with large N |-Wstack-usage= should
| |accept KB and MB suffixes
Ever confirmed|0 |1
--- Comment #4 from egallager at gcc dot gnu.org ---
(In reply to Martin Sebor from comment #2)
> To get around the INT_MAX limit the -Walloc-size-larger-than accepts numbers
> with suffixes like KB and MB. Other options that accept sizes should
> probably accept the same suffixes for consistency.
The warnings in the original testcase no longer occur, but I'm confirming (and
retitling) this bug on the basis that KB and MB suffixes still should be
supported.