aboutsummaryrefslogtreecommitdiff
path: root/gcc/doc
diff options
context:
space:
mode:
authorManuel López-Ibáñez <manu@gcc.gnu.org>2014-09-04 15:13:40 +0000
committerManuel López-Ibáñez <manu@gcc.gnu.org>2014-09-04 15:13:40 +0000
commit2b71f4a4f8515c5d0919fc5c220f427e7c837e7f (patch)
treec7538be5564ae0acb2315138a89ce1f3cc020b22 /gcc/doc
parent6bf5ce8f85c50886913d6f26a248f4c4c1445bd2 (diff)
downloadgcc-2b71f4a4f8515c5d0919fc5c220f427e7c837e7f.zip
gcc-2b71f4a4f8515c5d0919fc5c220f427e7c837e7f.tar.gz
gcc-2b71f4a4f8515c5d0919fc5c220f427e7c837e7f.tar.bz2
options.texi: Document that Var and Init are required if CPP is given.
gcc/ChangeLog: 2014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org> * doc/options.texi: Document that Var and Init are required if CPP is given. * optc-gen.awk: Require Var and Init if CPP is given. * common.opt (Wpedantic): Use Init. libcpp/ChangeLog: 2014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org> * macro.c (replace_args): Use cpp_pedwarning, cpp_warning and CPP_W flags. * include/cpplib.h: Add CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC. * init.c (cpp_create_reader): Do not init to -1 here. * expr.c (num_binary_op): Use cpp_pedwarning. gcc/c-family/ChangeLog: 2014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org> * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels, Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic, (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var and Init. * c-opts.c (c_common_handle_option): Do not handle here. (sanitize_cpp_opts): Likewise. * c-common.c (struct reason_option_codes_t): Handle CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC. gcc/testsuite/ChangeLog: 2014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org> * gcc.dg/cpp/endif-pedantic2.c: More general options do not override specific ones, but specific ones do. From-SVN: r214904
Diffstat (limited to 'gcc/doc')
-rw-r--r--gcc/doc/options.texi3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/doc/options.texi b/gcc/doc/options.texi
index ac4452e..df52cdb 100644
--- a/gcc/doc/options.texi
+++ b/gcc/doc/options.texi
@@ -485,6 +485,7 @@ 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}.
+option @var{var}. If this property is set, then properties @code{Var}
+and @code{Init} must be set as well.
@end table