gcc/libcpp/include
Ian Lance Taylor 3d8b2a98ca cpplib.h (struct cpp_options): Add warn_cxx_operator_names field.
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.

From-SVN: r148438
2009-06-12 19:43:25 +00:00
..
cpp-id-data.h cpp-id-data.h: Add extern "C". 2009-06-01 15:37:03 +00:00
cpplib.h cpplib.h (struct cpp_options): Add warn_cxx_operator_names field. 2009-06-12 19:43:25 +00:00
line-map.h diagnostic.c (diagnostic_build_prefix): Always print columns. 2009-06-01 16:09:33 +00:00
mkdeps.h cpp-id-data.h: Add extern "C". 2009-06-01 15:37:03 +00:00
symtab.h cpp-id-data.h: Add extern "C". 2009-06-01 15:37:03 +00:00