Commit 38b97f4d by Adam Nemet Committed by Adam Nemet

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
parent f03668f6
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
......
......@@ -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));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment