mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-05 19:51:34 +08:00
re PR tree-optimization/25879 (TDF_CHAIN makes -fdump-tree-all-all useless)
2006-02-20 Andrew Pinski <pinskia@physics.uc.edu> PR tree-opt/25879 * tree-pretty-print.c (debug_tree_chain): Walk the chains. (dump_decl_name): Do not walk the decl tree chains. * tree-pass.h (TDF_CHAIN): Remove. From-SVN: r111308
This commit is contained in:
parent
9d29a5b779
commit
406f9d5e3b
@ -1,4 +1,12 @@
|
||||
2006-02-20 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
|
||||
2006-02-20 Andrew Pinski <pinskia@physics.uc.edu>
|
||||
|
||||
PR tree-opt/25879
|
||||
* tree-pretty-print.c (debug_tree_chain): Walk the chains.
|
||||
(dump_decl_name): Do not walk the decl tree chains.
|
||||
* tree-pass.h (TDF_CHAIN): Remove.
|
||||
|
||||
2006-02-20 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
|
||||
|
||||
* Makefile.in (C): Remove
|
||||
(PROTO): Remove
|
||||
(.PHONY): Remove C and PROTO
|
||||
|
@ -68,8 +68,6 @@ enum tree_dump_index
|
||||
#define TDF_STMTADDR (1 << 12) /* Address of stmt. */
|
||||
|
||||
#define TDF_GRAPH (1 << 13) /* a graph dump is being emitted */
|
||||
#define TDF_CHAIN (1 << 14) /* Follow TREE_CHAIN when
|
||||
dumping *_DECLs. */
|
||||
|
||||
extern char *get_dump_file_name (enum tree_dump_index);
|
||||
extern int dump_enabled_p (enum tree_dump_index);
|
||||
|
@ -101,7 +101,12 @@ debug_generic_stmt (tree t)
|
||||
void
|
||||
debug_tree_chain (tree t)
|
||||
{
|
||||
print_generic_expr (stderr, t, TDF_VOPS|TDF_UID|TDF_CHAIN);
|
||||
while (t)
|
||||
{
|
||||
print_generic_expr (stderr, t, TDF_VOPS|TDF_UID);
|
||||
fprintf(stderr, " ");
|
||||
t = TREE_CHAIN (t);
|
||||
}
|
||||
fprintf (stderr, "\n");
|
||||
}
|
||||
|
||||
@ -160,32 +165,20 @@ dump_decl_name (pretty_printer *buffer, tree node, int flags)
|
||||
{
|
||||
tree t = node;
|
||||
|
||||
while (t)
|
||||
if (DECL_NAME (t))
|
||||
pp_tree_identifier (buffer, DECL_NAME (t));
|
||||
if ((flags & TDF_UID)
|
||||
|| DECL_NAME (t) == NULL_TREE)
|
||||
{
|
||||
if (DECL_NAME (t))
|
||||
pp_tree_identifier (buffer, DECL_NAME (t));
|
||||
|
||||
if ((flags & TDF_UID)
|
||||
|| DECL_NAME (t) == NULL_TREE)
|
||||
{
|
||||
if (TREE_CODE (t) == LABEL_DECL
|
||||
&& LABEL_DECL_UID (t) != -1)
|
||||
pp_printf (buffer, "L." HOST_WIDE_INT_PRINT_DEC,
|
||||
LABEL_DECL_UID (t));
|
||||
else
|
||||
{
|
||||
char c = TREE_CODE (t) == CONST_DECL ? 'C' : 'D';
|
||||
pp_printf (buffer, "%c.%u", c, DECL_UID (t));
|
||||
}
|
||||
}
|
||||
|
||||
if (flags & TDF_CHAIN)
|
||||
{
|
||||
t = TREE_CHAIN (t);
|
||||
pp_string (buffer, " ");
|
||||
}
|
||||
if (TREE_CODE (t) == LABEL_DECL
|
||||
&& LABEL_DECL_UID (t) != -1)
|
||||
pp_printf (buffer, "L." HOST_WIDE_INT_PRINT_DEC,
|
||||
LABEL_DECL_UID (t));
|
||||
else
|
||||
t = NULL_TREE;
|
||||
{
|
||||
char c = TREE_CODE (t) == CONST_DECL ? 'C' : 'D';
|
||||
pp_printf (buffer, "%c.%u", c, DECL_UID (t));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user