aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-pretty-print.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2010-09-07 09:57:56 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2010-09-07 09:57:56 +0000
commitd7806defb427e04da194b403a5a2728b1d56db1e (patch)
tree2b55e205bbfb8f5c4418f4a26374803ed7ce33ed /gcc/tree-pretty-print.c
parentf34504a3576b4020b73fcd06fee5c03fd93a0529 (diff)
downloadgcc-d7806defb427e04da194b403a5a2728b1d56db1e.zip
gcc-d7806defb427e04da194b403a5a2728b1d56db1e.tar.gz
gcc-d7806defb427e04da194b403a5a2728b1d56db1e.tar.bz2
tree-pretty-print.c (dump_generic_node): Dump void types as void.
2010-09-07 Richard Guenther <rguenther@suse.de> * tree-pretty-print.c (dump_generic_node): Dump void types as void. From-SVN: r163944
Diffstat (limited to 'gcc/tree-pretty-print.c')
-rw-r--r--gcc/tree-pretty-print.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/tree-pretty-print.c b/gcc/tree-pretty-print.c
index 7a0a3b5..44edbb0 100644
--- a/gcc/tree-pretty-print.c
+++ b/gcc/tree-pretty-print.c
@@ -732,6 +732,8 @@ dump_generic_node (pretty_printer *buffer, tree node, int spc, int flags,
pp_decimal_int (buffer, TYPE_PRECISION (node));
pp_string (buffer, ">");
}
+ else if (TREE_CODE (node) == VOID_TYPE)
+ pp_string (buffer, "void");
else
pp_string (buffer, "<unnamed type>");
}