diff options
author | Richard Guenther <rguenther@suse.de> | 2010-07-13 11:18:50 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2010-07-13 11:18:50 +0000 |
commit | 2eb0b984b67816b22c98b2287d7bd3cabf017b30 (patch) | |
tree | d7728974a1d9d684adf47d01eefcffaa78d8cd43 /gcc/tree-pretty-print.c | |
parent | d965817815c7a45a43ec22d78b7ca1e7f12ae586 (diff) | |
download | gcc-2eb0b984b67816b22c98b2287d7bd3cabf017b30.zip gcc-2eb0b984b67816b22c98b2287d7bd3cabf017b30.tar.gz gcc-2eb0b984b67816b22c98b2287d7bd3cabf017b30.tar.bz2 |
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
Diffstat (limited to 'gcc/tree-pretty-print.c')
-rw-r--r-- | gcc/tree-pretty-print.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/tree-pretty-print.c b/gcc/tree-pretty-print.c index a51fbe7..db85caf 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, "<anon>"); break; case VAR_DECL: |