diff options
author | Richard Guenther <rguenther@suse.de> | 2011-09-02 13:52:12 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2011-09-02 13:52:12 +0000 |
commit | aa547a51dab42285a259b77d45bec65fa3f82646 (patch) | |
tree | 7007bd6b3ab6166761b3605ffacf2a7b73056c9e /gcc/tree-pretty-print.c | |
parent | 6aa67e7b9925ea6373f186cae8e7c1461ea54ee3 (diff) | |
download | gcc-aa547a51dab42285a259b77d45bec65fa3f82646.zip gcc-aa547a51dab42285a259b77d45bec65fa3f82646.tar.gz gcc-aa547a51dab42285a259b77d45bec65fa3f82646.tar.bz2 |
pretty-print.h (pp_unsigned_wide_integer): New.
2011-09-02 Richard Guenther <rguenther@suse.de>
* pretty-print.h (pp_unsigned_wide_integer): New.
* tree-pretty-print.c (dump_generic_node): Print unsigned
host-wide-int fitting INTEGER_CSTs with pp_unsigned_wide_integer.
From-SVN: r178479
Diffstat (limited to 'gcc/tree-pretty-print.c')
-rw-r--r-- | gcc/tree-pretty-print.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gcc/tree-pretty-print.c b/gcc/tree-pretty-print.c index 2c4b5bf..e30d60a 100644 --- a/gcc/tree-pretty-print.c +++ b/gcc/tree-pretty-print.c @@ -1002,7 +1002,11 @@ dump_generic_node (pretty_printer *buffer, tree node, int spc, int flags, pp_wide_integer (buffer, TREE_INT_CST_LOW (node)); pp_string (buffer, "B"); /* pseudo-unit */ } - else if (! host_integerp (node, 0)) + else if (host_integerp (node, 0)) + pp_wide_integer (buffer, TREE_INT_CST_LOW (node)); + else if (host_integerp (node, 1)) + pp_unsigned_wide_integer (buffer, TREE_INT_CST_LOW (node)); + else { tree val = node; unsigned HOST_WIDE_INT low = TREE_INT_CST_LOW (val); @@ -1021,8 +1025,6 @@ dump_generic_node (pretty_printer *buffer, tree node, int spc, int flags, (unsigned HOST_WIDE_INT) high, low); pp_string (buffer, pp_buffer (buffer)->digit_buffer); } - else - pp_wide_integer (buffer, TREE_INT_CST_LOW (node)); break; case REAL_CST: |