parser.c: Remove ENABLE_CHECKING markers around debugging routines.
commitaa6e723726a1e0ab392e436112ba18d071f927af
authorDiego Novillo <dnovillo@google.com>
Tue, 18 Oct 2011 12:36:46 +0000 (18 08:36 -0400)
committerDiego Novillo <dnovillo@gcc.gnu.org>
Tue, 18 Oct 2011 12:36:46 +0000 (18 08:36 -0400)
tree04093a820333f42b0fc9238b6306a36945554dfe
parentea3f6aa86222070d219f0c70a60c2eda779ba306
parser.c: Remove ENABLE_CHECKING markers around debugging routines.

* 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.

From-SVN: r180136
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/cp/parser.h