diff options
author | Manuel López-Ibáñez <manu@gcc.gnu.org> | 2014-08-19 22:37:49 +0000 |
---|---|---|
committer | Manuel López-Ibáñez <manu@gcc.gnu.org> | 2014-08-19 22:37:49 +0000 |
commit | 43f9a13cee34bbf3f007469d4dd3c3a67e6d8e6d (patch) | |
tree | 75764dc68d3b47da1315519f474d62d5a2262f04 /gcc/doc | |
parent | cd0059f55fc3e14c2b24a4db084064e0da3295a8 (diff) | |
download | gcc-43f9a13cee34bbf3f007469d4dd3c3a67e6d8e6d.zip gcc-43f9a13cee34bbf3f007469d4dd3c3a67e6d8e6d.tar.gz gcc-43f9a13cee34bbf3f007469d4dd3c3a67e6d8e6d.tar.bz2 |
re PR preprocessor/60975 (-Wvariadic-macros does not print warning)
gcc/ChangeLog:
2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
PR c/60975
PR c/53063
* doc/options.texi (CPP): Document it.
* doc/invoke.texi (Wvariadic-macros): Fix documentation.
* optc-gen.awk: Handle CPP.
* opth-gen.awk: Likewise.
gcc/c-family/ChangeLog:
2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
PR c/60975
PR c/53063
* c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
* c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
(c_common_post_options): Call init_global_opts_from_cpp.
(sanitize_cpp_opts): Do not handle Wvariadic-macros here.
gcc/testsuite/ChangeLog:
2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
PR c/60975
PR c/53063
* gcc.dg/cpp/Wvariadic-1p.c: New test.
From-SVN: r214200
Diffstat (limited to 'gcc/doc')
-rw-r--r-- | gcc/doc/invoke.texi | 7 | ||||
-rw-r--r-- | gcc/doc/options.texi | 5 |
2 files changed, 9 insertions, 3 deletions
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index b8e4294..f8499bc 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -5127,9 +5127,10 @@ modes. To inhibit the warning messages, use @option{-Wno-long-long}. @item -Wvariadic-macros @opindex Wvariadic-macros @opindex Wno-variadic-macros -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}. +Warn if variadic macros are used in ISO C90 mode, or if the GNU +alternate syntax is used in ISO C99 mode. This is enabled by either +@option{-Wpedantic} or @option{-Wtraditional}. To inhibit the warning +messages, use @option{-Wno-variadic-macros}. @item -Wvarargs @opindex Wvarargs diff --git a/gcc/doc/options.texi b/gcc/doc/options.texi index 938017a..ac4452e 100644 --- a/gcc/doc/options.texi +++ b/gcc/doc/options.texi @@ -482,4 +482,9 @@ The option is omitted from the producer string written by @item PchIgnore Even if this is a target option, this option will not be recorded / compared to determine if a precompiled header file matches. + +@item CPP(@var{var}) +The state of this option should be kept in sync with the preprocessor +option @var{var}. + @end table |