summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>2007-03-26 19:56:59 +0000
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>2007-03-26 19:56:59 +0000
commite4e0b8984a1c3467bb3b082955c6224e63d28f45 (patch)
treed030e2d485a627fd327917b5a88ff4ade799f0fe
parent03dbd7ccbcef9995b52d4ed0738401424c2a81c4 (diff)
downloadgcc-e4e0b8984a1c3467bb3b082955c6224e63d28f45.tar.gz
* tree-pretty-print.c (dump_generic_node): Report precision of
unnamed integer types. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123224 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/tree-pretty-print.c8
2 files changed, 13 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 4cb6e8653f3..577a2d423aa 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2007-03-26 Joseph Myers <joseph@codesourcery.com>
+
+ * tree-pretty-print.c (dump_generic_node): Report precision of
+ unnamed integer types.
+
2007-03-26 Steven Bosscher <steven@gcc.gnu.org>
* ifcvt.c (noce_try_store_flag_constants): Don't check
diff --git a/gcc/tree-pretty-print.c b/gcc/tree-pretty-print.c
index 8d5ca276ae8..3f082f0505d 100644
--- a/gcc/tree-pretty-print.c
+++ b/gcc/tree-pretty-print.c
@@ -571,6 +571,14 @@ dump_generic_node (pretty_printer *buffer, tree node, int spc, int flags,
dump_generic_node (buffer, TREE_TYPE (node),
spc, flags, false);
}
+ else if (TREE_CODE (node) == INTEGER_TYPE)
+ {
+ pp_string (buffer, (TYPE_UNSIGNED (node)
+ ? "<unnamed-unsigned:"
+ : "<unnamed-signed:"));
+ pp_decimal_int (buffer, TYPE_PRECISION (node));
+ pp_string (buffer, ">");
+ }
else
pp_string (buffer, "<unnamed type>");
}