summaryrefslogtreecommitdiff
path: root/gcc/tree-dump.h
diff options
context:
space:
mode:
authorJoern Rennecke <joern.rennecke@embecosm.com>2010-07-13 21:55:57 +0000
committerJoern Rennecke <amylaar@gcc.gnu.org>2010-07-13 22:55:57 +0100
commitc31c32f95917cef39e066fd8964abc55c3d5aeac (patch)
tree78e64b469ad027c41fccce9021395470fd154b69 /gcc/tree-dump.h
parent5bca11c4efc6271558e920c5a2395bc27ea18e74 (diff)
downloadgcc-c31c32f95917cef39e066fd8964abc55c3d5aeac.tar.gz
re PR other/44874 (TDF_NOUID dumps miss information about DECL_UID ordering)
gcc: PR other/44874 * tree-dump.c (dump_options): Add enumerate_locals entry. Add TDF_NOID exclusion to all entry. * tree-dump.h (dump_enumerated_decls): Declare. * tree-pretty-print.c (dump_generic_node): For TDF_NOID, Don't display type uid. (print_declaration): Don't crash on TREE_TYPE (t) == 0. * tree-pass.h (TDF_ENUMERATE_LOCALS): Define. * tree-ssa-live.c: Include gimple.h. (numbered_tree_d): New struct. (numbered_tree): New typedef. (DEF_VEC_O (numbered_tree): New. (DEF_VEC_ALLOC_O (numbered_tree, heap)): Likewise. (compare_decls_by_uid, dump_enumerated_decls_push): New functions. (dump_enumerated_decls): Likewise. * tree-optimize.c (execute_cleanup_cfg_post_optimizing): If comparing debug info and flag_dump_final_insns, call dump_enumerated_decls. * tree-cfg.c (dump_function_to_file): Call dump_enumerated_decls. * Makefile.in (tree-ssa-live.o): Depend on $(GIMPLE_H). gcc/testsuite: PR other/44874 PR debug/44832 * c-c++-common/pr44832.c: New test. From-SVN: r162156
Diffstat (limited to 'gcc/tree-dump.h')
-rw-r--r--gcc/tree-dump.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/tree-dump.h b/gcc/tree-dump.h
index eeb28e0aad6..f5b04ff67ea 100644
--- a/gcc/tree-dump.h
+++ b/gcc/tree-dump.h
@@ -91,6 +91,7 @@ extern void queue_and_dump_index (dump_info_p, const char *, const_tree, int);
extern void queue_and_dump_type (dump_info_p, const_tree);
extern void dump_function (int, tree);
extern void dump_function_to_file (tree, FILE *, int);
+extern void dump_enumerated_decls (FILE *, int);
extern void debug_function (tree, int);
extern int dump_flag (dump_info_p, int, const_tree);