This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] update the documentation and --help message for -Wframe-larger-than=
- From: "Seongbae Park (박성배, 朴成培)" <seongbae dot park at gmail dot com>
- To: gcc-patches <gcc-patches at gcc dot gnu dot org>
- Cc: "Andrew Pinski" <pinskia at gmail dot com>, "Mark Mitchell" <mark at codesourcery dot com>
- Date: Thu, 8 May 2008 15:15:17 -0700
- Subject: [PATCH] update the documentation and --help message for -Wframe-larger-than=
Hi,
Andrew noticed that --help -v message for -Wframe-larger-than= looked weird.
The following patch fixes the problem, and moves the long-ish comment
to the appropriate place in invoke.texi.
Tested by looking at --help -v output and info -f gcc.info.
OK for mainline ?
Seongbae
gcc/ChangeLog:
2008-05-08 Seongbae Park <seongbae.park@gmail.com>
* common.opt (Wframe-larger-than=): Shorten the help message
to one line.
* doc/invoke.texi (Wframe-larger-than=): Add more description.
Index: doc/invoke.texi
===================================================================
--- doc/invoke.texi (revision 134832)
+++ doc/invoke.texi (working copy)
@@ -3552,7 +3552,14 @@ Warn whenever an object of larger than @
@item -Wframe-larger-than=@var{len}
@opindex Wframe-larger-than
-Warn whenever the size of a function frame is larger than @var{len} bytes.
+Warn if the size of a function frame is larger than @var{len} bytes.
+The computation done to determine the stack frame size is approximate
+and not conservative.
+The actual requirements may be somewhat greater than @var{len}
+even if you do not get a warning. In addition, any space allocated
+via @code{alloca}, variable-length arrays, or related constructs
+is not included by the compiler when determining
+whether or not to issue a warning.
@item -Wunsafe-loop-optimizations
@opindex Wunsafe-loop-optimizations
Index: common.opt
===================================================================
--- common.opt (revision 134829)
+++ common.opt (working copy)
@@ -112,14 +112,7 @@ Exit on the first error occurred
Wframe-larger-than=
Common RejectNegative Joined UInteger
--Wframe-larger-than=@var{len} Warn whenever a function's stack frame requires
-more than @var{len} bytes. The computation done to determine
-the stack frame size is approximate and not conservative.
-The actual requirements may be somewhat greater than @var{len}
-even if you do not get a warning. In addition, any space allocated
-via @code{alloca}, variable-length arrays, or related constructs
-is not included by the compiler when determining
-whether or not to issue a warning.
+-Wframe-larger-than=<number> Warn if a function's stack frame requires more than <number> bytes
Winline
Common Var(warn_inline) Warning