]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
tree-pretty-print.c (dump_generic_node): Use HOST_WIDE_INT_PRINT to print high and...
authorAdam Nemet <anemet@caviumnetworks.com>
Wed, 1 Nov 2006 19:19:28 +0000 (19:19 +0000)
committerAdam Nemet <nemet@gcc.gnu.org>
Wed, 1 Nov 2006 19:19:28 +0000 (19:19 +0000)
* 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

gcc/ChangeLog
gcc/tree-pretty-print.c

index ceab5a461ba9d65f681b0763251782c2bb9e152b..147c28cd54dc99f5359ffb934c8a4c0d8786ed3a 100644 (file)
@@ -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
index 0ef4e85554f27ff8549f1d846e98417a305746e1..dc846c842c1d18b52f3f286a8d3fa7f1bdff8aee 100644 (file)
@@ -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));