gcc/libcpp
Manuel López-Ibáñez cfc9353275 re PR c++/14875 (When using 'or' keyword, the error message speaks of a '||' token)
2009-04-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>

	PR c++/14875
	* c-common.c (c_parse_error): Take a token_flags parameter.
	Use token_type for the token type instead.
	Pass token_flags to cpp_type2name.
	* c-common.h (c_parse_error): Update declaration.
	* c-parser.c (c_parser_error): Pass 0 as token flags.
libcpp/
	* lex.c (cpp_type2name): Take a flags parameter. Call
	cpp_named_operator2name for named operators and cpp_digraph2name
	for digraphs.
	(cpp_digraph2name): New.
	(cpp_spell_token): Use it.
	(cpp_output_token): Likewise.
	* include/cpplib.h (cpp_type2name): Update declaration.
	* init.c (cpp_named_operator2name): New.
	* internal.h (cpp_named_operator2name): Declare.
cp/	
	* parser.c (cp_parser_error): Pass token->flags to c_parse_error.
testsuite/
	* g++.dg/parse/parser-pr14875.C: New.
	* g++.dg/parse/parser-pr14875-2.C: New.
	* g++.dg/parse/error6.C: Update match string.

From-SVN: r146589
2009-04-22 15:32:18 +00:00
..
include re PR c++/14875 (When using 'or' keyword, the error message speaks of a '||' token) 2009-04-22 15:32:18 +00:00
po * cpplib.pot: Regenerate. 2009-03-28 06:57:06 +00:00
aclocal.m4 re PR other/35457 (Error building GCC trunk on CELL SPU) 2008-04-18 10:28:53 +00:00
ChangeLog re PR c++/14875 (When using 'or' keyword, the error message speaks of a '||' token) 2009-04-22 15:32:18 +00:00
charset.c Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02: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 directives.c (parse_include): Pass true to check_eol. 2009-04-18 21:25:07 +01:00
errors.c Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
expr.c re PR c++/13358 (long long and C++ do not mix well) 2009-04-20 22:12:52 +00:00
files.c Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
identifiers.c Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
init.c re PR c++/14875 (When using 'or' keyword, the error message speaks of a '||' token) 2009-04-22 15:32:18 +00:00
internal.h re PR c++/14875 (When using 'or' keyword, the error message speaks of a '||' token) 2009-04-22 15:32:18 +00:00
lex.c re PR c++/14875 (When using 'or' keyword, the error message speaks of a '||' token) 2009-04-22 15:32:18 +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 re PR preprocessor/20078 (Gcc doesn't complain about non-benign macro definitions) 2009-04-19 18:10:56 +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