diff --git a/gcc/ChangeLog b/gcc/ChangeLog index daf042a0587..bee94900be3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2010-07-13 Richard Guenther + + PR middle-end/44911 + * tree-pretty-print.c (dump_generic_node): Use TDF_SLIM for + MEM_REF pointer type dumping. Avoid recursing for TYPE_DECLs + without name. + 2010-07-13 Kaz Kojima PR target/44761 diff --git a/gcc/tree-pretty-print.c b/gcc/tree-pretty-print.c index a51fbe73236..db85caf8cef 100644 --- a/gcc/tree-pretty-print.c +++ b/gcc/tree-pretty-print.c @@ -828,7 +828,7 @@ dump_generic_node (pretty_printer *buffer, tree node, int spc, int flags, pp_string (buffer, "MEM["); pp_string (buffer, "("); dump_generic_node (buffer, TREE_TYPE (TREE_OPERAND (node, 1)), - spc, flags, false); + spc, flags | TDF_SLIM, false); pp_string (buffer, ")"); dump_generic_node (buffer, TREE_OPERAND (node, 0), spc, flags, false); @@ -1113,7 +1113,7 @@ dump_generic_node (pretty_printer *buffer, tree node, int spc, int flags, } if (DECL_NAME (node)) dump_decl_name (buffer, node, flags); - else + else if (TYPE_NAME (TREE_TYPE (node)) != node) { if ((TREE_CODE (TREE_TYPE (node)) == RECORD_TYPE || TREE_CODE (TREE_TYPE (node)) == UNION_TYPE) @@ -1132,6 +1132,8 @@ dump_generic_node (pretty_printer *buffer, tree node, int spc, int flags, dump_generic_node (buffer, TREE_TYPE (node), spc, flags, false); } } + else + pp_string (buffer, ""); break; case VAR_DECL: