re PR middle-end/44911 (line breaks in asm comments break assembly with -fverbose-asm)

2010-07-13  Richard Guenther  <rguenther@suse.de>

	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.

From-SVN: r162137
This commit is contained in:
Richard Guenther 2010-07-13 11:18:50 +00:00 committed by Richard Biener
parent d965817815
commit 2eb0b984b6
2 changed files with 11 additions and 2 deletions

View File

@ -1,3 +1,10 @@
2010-07-13 Richard Guenther <rguenther@suse.de>
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 <kkojima@gcc.gnu.org>
PR target/44761

View File

@ -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, "<anon>");
break;
case VAR_DECL: