r148438 - in /trunk: gcc/ChangeLog gcc/c-opts.c...
ian@gcc.gnu.org
ian@gcc.gnu.org
Fri Jun 12 19:43:00 GMT 2009
Author: ian
Date: Fri Jun 12 19:43:25 2009
New Revision: 148438
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=148438
Log:
libcpp/:
* include/cpplib.h (struct cpp_options): Add
warn_cxx_operator_names field.
(NODE_WARN_OPERATOR): Define.
(struct cpp_hashnode): Increase flags field to 10 bits, decrease
type to 6 bits.
* init.c (mark_named_operators): Add flags parameter.
(cpp_post_options): Pick flags value to pass to
mark_named_operators.
* lex.c (lex_identifier): If NODE_WARN_OPERATOR is set, warn that
identifier is an operator name in C++.
gcc/:
* fold-const.c (fold_unary): Rename local variable and to
and_expr.
* c-opts.c (c_common_handle_option): For -Wc++-compat set
cpp_opts->warn_cxx_operator_names.
gcc/testsuite/:
* gcc.dg/Wcxx-compat-13.c: New testcase.
Added:
trunk/gcc/testsuite/gcc.dg/Wcxx-compat-13.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/c-opts.c
trunk/gcc/fold-const.c
trunk/gcc/testsuite/ChangeLog
trunk/libcpp/ChangeLog
trunk/libcpp/include/cpplib.h
trunk/libcpp/init.c
trunk/libcpp/lex.c
More information about the Gcc-cvs
mailing list