diff options
author | Adam Nemet <anemet@caviumnetworks.com> | 2006-11-01 19:19:28 +0000 |
---|---|---|
committer | Adam Nemet <nemet@gcc.gnu.org> | 2006-11-01 19:19:28 +0000 |
commit | 38b97f4da2c0db6ffc7ce46d841ef1c01e4d062a (patch) | |
tree | ddacd48bf7ba273abd12a152dc8278ccbc186732 | |
parent | f03668f6ee1f4782e7957b0e59292d7239588616 (diff) | |
download | gcc-38b97f4da2c0db6ffc7ce46d841ef1c01e4d062a.zip gcc-38b97f4da2c0db6ffc7ce46d841ef1c01e4d062a.tar.gz gcc-38b97f4da2c0db6ffc7ce46d841ef1c01e4d062a.tar.bz2 |
tree-pretty-print.c (dump_generic_node): Use HOST_WIDE_INT_PRINT to print high and low parts.
* tree-pretty-print.c (dump_generic_node) <INTEGER_CST>: Use
HOST_WIDE_INT_PRINT to print high and low parts. Use
HOST_BITS_PER_WIDE_INT for the width of HOST_WIDE_INT. When
printing a hexadecimal number prefix it with 0x.
From-SVN: r118393
-rw-r--r-- | gcc/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/tree-pretty-print.c | 4 |
2 files changed, 10 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ceab5a4..147c28c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2006-11-01 Adam Nemet <anemet@caviumnetworks.com> + + * tree-pretty-print.c (dump_generic_node) <INTEGER_CST>: Use + HOST_WIDE_INT_PRINT to print high and low parts. Use + HOST_BITS_PER_WIDE_INT for the width of HOST_WIDE_INT. When + printing a hexadecimal number prefix it with 0x. + 2006-11-01 Chris Johns <chris@contemporary.net.au> PR bootstrap/28400 diff --git a/gcc/tree-pretty-print.c b/gcc/tree-pretty-print.c index 0ef4e85..dc846c8 100644 --- a/gcc/tree-pretty-print.c +++ b/gcc/tree-pretty-print.c @@ -734,7 +734,9 @@ dump_generic_node (pretty_printer *buffer, tree node, int spc, int flags, { static char format[10]; /* "%x%09999x\0" */ if (!format[0]) - sprintf (format, "%%x%%0%dx", HOST_BITS_PER_INT / 4); + sprintf (format, "0x%%" HOST_WIDE_INT_PRINT "x" + "%%0%d" HOST_WIDE_INT_PRINT "x", + HOST_BITS_PER_WIDE_INT / 4); sprintf (pp_buffer (buffer)->digit_buffer, format, TREE_INT_CST_HIGH (val), TREE_INT_CST_LOW (val)); |