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 Guenther <rguenther@suse.de>2010-09-07 09:57:56 +0000
commit84c7ac8b5af8d57411e3cbabd6a5f16a041909fb (patch)
tree2b55e205bbfb8f5c4418f4a26374803ed7ce33ed /gcc/tree-pretty-print.c
parent8fe8e87a24efcde2579942177d3faaf8d45ae07d (diff)
2010-09-07 Richard Guenther <rguenther@suse.de>
* tree-pretty-print.c (dump_generic_node): Dump void types as void. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@163944 138bc75d-0d04-0410-961f-82ee72b054a4
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 7a0a3b50189..44edbb071dd 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>");
}