gcc/libcpp
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
..
include cpplib.h (struct cpp_options): Add warn_cxx_operator_names field. 2009-06-12 19:43:25 +00:00
po * cpplib.pot: Regenerate. 2009-04-22 17:32:24 +01:00
aclocal.m4
ChangeLog cpplib.h (struct cpp_options): Add warn_cxx_operator_names field. 2009-06-12 19:43:25 +00:00
charset.c charset.c (one_utf8_to_cppchar): Correct mask used for 5-byte UTF-8 sequences. 2009-05-03 12:59:26 +01:00
config.in re PR preprocessor/31932 (cpp -f*-charset and gcj --encoding accept no values except UTF-8) 2009-03-30 20:54:18 +00:00
configure re PR preprocessor/31932 (cpp -f*-charset and gcj --encoding accept no values except UTF-8) 2009-03-30 20:54:18 +00:00
configure.ac re PR preprocessor/31932 (cpp -f*-charset and gcj --encoding accept no values except UTF-8) 2009-03-30 20:54:18 +00:00
directives-only.c Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
directives.c re PR preprocessor/36674 (#include location is offset by one row in errors from preprocessed files) 2009-05-13 23:17:55 +00:00
errors.c Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
expr.c c-lex.c (c_lex_with_flags): Expect cpp_hashnode in tok->val.node.node. 2009-05-10 15:27:32 +01:00
files.c re PR preprocessor/36674 (#include location is offset by one row in errors from preprocessed files) 2009-05-13 23:17:55 +00:00
identifiers.c Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
init.c cpplib.h (struct cpp_options): Add warn_cxx_operator_names field. 2009-06-12 19:43:25 +00:00
internal.h cpp-id-data.h: Add extern "C". 2009-06-01 15:37:03 +00:00
lex.c cpplib.h (struct cpp_options): Add warn_cxx_operator_names field. 2009-06-12 19:43:25 +00:00
line-map.c re PR preprocessor/39646 (__FILE__ breaks for empty file name) 2009-04-18 18:36:28 +01:00
macro.c c-lex.c (c_lex_with_flags): Expect cpp_hashnode in tok->val.node.node. 2009-05-10 15:27:32 +01:00
Makefile.in Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
makeucnid.c Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
mkdeps.c Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
pch.c Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
symtab.c Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
system.h Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
traditional.c Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
ucnid.h Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
ucnid.tab Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00