diff options
author | Joseph Myers <joseph@codesourcery.com> | 2007-03-26 20:56:59 +0100 |
---|---|---|
committer | Joseph Myers <jsm28@gcc.gnu.org> | 2007-03-26 20:56:59 +0100 |
commit | 71175bf368bd9b8d5aff585f6ad9890105e5382a (patch) | |
tree | d030e2d485a627fd327917b5a88ff4ade799f0fe /gcc | |
parent | 93242b9c1b2e15fd90be6d6b0513cca9b2969c22 (diff) | |
download | gcc-71175bf368bd9b8d5aff585f6ad9890105e5382a.zip gcc-71175bf368bd9b8d5aff585f6ad9890105e5382a.tar.gz gcc-71175bf368bd9b8d5aff585f6ad9890105e5382a.tar.bz2 |
tree-pretty-print.c (dump_generic_node): Report precision of unnamed integer types.
* tree-pretty-print.c (dump_generic_node): Report precision of
unnamed integer types.
From-SVN: r123224
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/tree-pretty-print.c | 8 |
2 files changed, 13 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4cb6e86..577a2d4 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 8d5ca27..3f082f0 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>"); } |