r180136 - in /trunk/gcc/cp: ChangeLog parser.c ...
dnovillo@gcc.gnu.org
dnovillo@gcc.gnu.org
Tue Oct 18 12:36:00 GMT 2011
Author: dnovillo
Date: Tue Oct 18 12:36:46 2011
New Revision: 180136
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=180136
Log:
* parser.c: Remove ENABLE_CHECKING markers around debugging
routines.
(cp_lexer_dump_tokens): Add arguments START_TOKEN and CURR_TOKEN.
Make static
When printing CURR_TOKEN surround it in [[ ]].
Start printing at START_TOKEN.
Update all users.
(cp_debug_print_tree_if_set): New.
(cp_debug_print_context): New.
(cp_debug_print_context_stack): New.
(cp_debug_print_flag): New.
(cp_debug_print_unparsed_function): New.
(cp_debug_print_unparsed_queues): New.
(cp_debug_parser_tokens): New.
(cp_debug_parser): New.
(cp_lexer_start_debugging): Set cp_lexer_debug_stream to stderr.
(cp_lexer_stop_debugging): Set cp_lexer_debug_stream to NULL.
* parser.h (cp_lexer_dump_tokens): Remove declaration.
(cp_debug_parser): Declare.
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/parser.c
trunk/gcc/cp/parser.h
More information about the Gcc-cvs
mailing list