aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/parser.h
diff options
context:
space:
mode:
authorDiego Novillo <dnovillo@google.com>2011-10-18 08:36:46 -0400
committerDiego Novillo <dnovillo@gcc.gnu.org>2011-10-18 08:36:46 -0400
commitaa6e723726a1e0ab392e436112ba18d071f927af (patch)
tree04093a820333f42b0fc9238b6306a36945554dfe /gcc/cp/parser.h
parentea3f6aa86222070d219f0c70a60c2eda779ba306 (diff)
downloadgcc-aa6e723726a1e0ab392e436112ba18d071f927af.zip
gcc-aa6e723726a1e0ab392e436112ba18d071f927af.tar.gz
gcc-aa6e723726a1e0ab392e436112ba18d071f927af.tar.bz2
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
Diffstat (limited to 'gcc/cp/parser.h')
-rw-r--r--gcc/cp/parser.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/gcc/cp/parser.h b/gcc/cp/parser.h
index e08c0b4..b44d23c 100644
--- a/gcc/cp/parser.h
+++ b/gcc/cp/parser.h
@@ -352,9 +352,7 @@ typedef struct GTY(()) cp_parser {
} cp_parser;
/* In parser.c */
-#ifdef ENABLE_CHECKING
-extern void cp_lexer_dump_tokens (FILE *, VEC(cp_token,gc) *, unsigned);
extern void cp_lexer_debug_tokens (VEC(cp_token,gc) *);
-#endif
+extern void cp_debug_parser (FILE *, cp_parser *);
#endif /* GCC_CP_PARSER_H */