diff options
author | Joseph Myers <joseph@codesourcery.com> | 2019-11-20 16:38:37 +0000 |
---|---|---|
committer | Joseph Myers <jsm28@gcc.gnu.org> | 2019-11-20 16:38:37 +0000 |
commit | 73248b1d2665661b840c1f00cfa1a5b844775cdd (patch) | |
tree | 3888e1403ba085cae925180d2dd25e00040375c6 /gcc/doc | |
parent | 6271dd984d7f920d4fb17ad37af6a1f8e6b796dc (diff) | |
download | gcc-73248b1d2665661b840c1f00cfa1a5b844775cdd.zip gcc-73248b1d2665661b840c1f00cfa1a5b844775cdd.tar.gz gcc-73248b1d2665661b840c1f00cfa1a5b844775cdd.tar.bz2 |
Document -Wc11-c2x-compat.
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: r278510
Diffstat (limited to 'gcc/doc')
-rw-r--r-- | gcc/doc/invoke.texi | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 031bfd2..c162b0d 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -295,6 +295,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 -Wc++20-compat @gol -Wcast-align -Wcast-align=strict -Wcast-function-type -Wcast-qual @gol @@ -6830,6 +6831,16 @@ 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}, +use of @samp{[[]]} syntax for attributes, use of decimal +floating-point types, and so on. 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 |