]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Document -Wc11-c2x-compat.
authorJoseph Myers <joseph@codesourcery.com>
Wed, 20 Nov 2019 16:43:14 +0000 (16:43 +0000)
committerJoseph Myers <jsm28@gcc.gnu.org>
Wed, 20 Nov 2019 16:43:14 +0000 (16:43 +0000)
My patch that added initial C2X support and associated command-line
options missed documenting -Wc11-c2x-compat although the other options
were properly documented.  This patch adds the missing documentation.

Tested with "make info" and "make pdf".

* doc/invoke.texi (-Wc11-c2x-compat): Document.

From-SVN: r278511

gcc/ChangeLog
gcc/doc/invoke.texi

index e31d5565539eb09b49bf87a35ac8be6e825206d4..a68a466d6ae12913c2813ebcdc9b7d788a4f8228 100644 (file)
@@ -1,3 +1,7 @@
+2019-11-20  Joseph Myers  <joseph@codesourcery.com>
+
+       * doc/invoke.texi (-Wc11-c2x-compat): Document.
+
 2019-11-20  Jakub Jelinek  <jakub@redhat.com>
 
        PR middle-end/90840
index b3fdcde8b4d7792c14570ae883eedffed9fb49ca..1447ab056df9c4456c0f9151cbc1ce40d1f7412f 100644 (file)
@@ -292,6 +292,7 @@ Objective-C and Objective-C++ Dialects}.
 -Wbool-compare  -Wbool-operation @gol
 -Wno-builtin-declaration-mismatch @gol
 -Wno-builtin-macro-redefined  -Wc90-c99-compat  -Wc99-c11-compat @gol
+-Wc11-c2x-compat @gol
 -Wc++-compat  -Wc++11-compat  -Wc++14-compat  -Wc++17-compat  @gol
 -Wcast-align  -Wcast-align=strict  -Wcast-function-type  -Wcast-qual  @gol
 -Wchar-subscripts  -Wcatch-value  -Wcatch-value=@var{n} @gol
@@ -6698,6 +6699,14 @@ For instance, warn about use of anonymous structures and unions,
 and so on.  This option is independent of the standards mode.  Warnings are
 disabled in the expression that follows @code{__extension__}.
 
+@item -Wc11-c2x-compat @r{(C and Objective-C only)}
+@opindex Wc11-c2x-compat
+@opindex Wno-c11-c2x-compat
+Warn about features not present in ISO C11, but present in ISO C2X.
+For instance, warn about omitting the string in @code{_Static_assert}.
+This option is independent of the standards mode.  Warnings are
+disabled in the expression that follows @code{__extension__}.
+
 @item -Wc++-compat @r{(C and Objective-C only)}
 @opindex Wc++-compat
 @opindex Wno-c++-compat