summaryrefslogtreecommitdiffstats
path: root/contrib/gcc/doc
diff options
context:
space:
mode:
authorpfg <pfg@FreeBSD.org>2013-11-16 01:03:56 +0000
committerpfg <pfg@FreeBSD.org>2013-11-16 01:03:56 +0000
commit43666eab78b10808646ed428d2019b2dcf0d92f0 (patch)
treede0af42512a9447546e9ecef179d9c7f9318578a /contrib/gcc/doc
parentef361f73c1648dd7337c2ee0019bf6b0d4aba44d (diff)
downloadFreeBSD-src-43666eab78b10808646ed428d2019b2dcf0d92f0.zip
FreeBSD-src-43666eab78b10808646ed428d2019b2dcf0d92f0.tar.gz
gcc: Add a new option -Wvla to warn variable length array.
Obtained from: gcc 4.3 (rev. 122851; GPLv2) MFC after: 3 weeks
Diffstat (limited to 'contrib/gcc/doc')
-rw-r--r--contrib/gcc/doc/invoke.texi10
1 files changed, 9 insertions, 1 deletions
diff --git a/contrib/gcc/doc/invoke.texi b/contrib/gcc/doc/invoke.texi
index c980bba..495e32e 100644
--- a/contrib/gcc/doc/invoke.texi
+++ b/contrib/gcc/doc/invoke.texi
@@ -230,7 +230,8 @@ in the following sections.
-Wsystem-headers -Wtrigraphs -Wundef -Wuninitialized @gol
-Wunknown-pragmas -Wno-pragmas -Wunreachable-code @gol
-Wunused -Wunused-function -Wunused-label -Wunused-parameter @gol
--Wunused-value -Wunused-variable -Wvariadic-macros @gol
+-Wunused-value -Wunused-variable @gol
+-Wvariadic-macros -Wvla @gol
-Wvolatile-register-var -Wwrite-strings}
@item C-only Warning Options
@@ -3201,6 +3202,13 @@ Warn if variadic macros are used in pedantic ISO C90 mode, or the GNU
alternate syntax when in pedantic ISO C99 mode. This is default.
To inhibit the warning messages, use @option{-Wno-variadic-macros}.
+@item -Wvla
+@opindex Wvla
+@opindex Wno-vla
+Warn if variable length array is used in the code.
+@option{-Wno-vla} will prevent the @option{-pedantic} warning of
+the variable length array.
+
@item -Wvolatile-register-var
@opindex Wvolatile-register-var
@opindex Wno-volatile-register-var
OpenPOWER on IntegriCloud