Commit 54b12dbe by Andrew Pinski Committed by Andrew Pinski

tree-pretty-print.c (dump_generic_node): Use HOST_WIDE_INT_PRINT_DOUBLE_HEX…

tree-pretty-print.c (dump_generic_node): Use HOST_WIDE_INT_PRINT_DOUBLE_HEX instead of format buffer.

2006-11-08  Andrew Pinski  <Andrew_Pinski@playstation.sony.com>

        * tree-pretty-print.c (dump_generic_node) <INTEGER_CST>: Use
        HOST_WIDE_INT_PRINT_DOUBLE_HEX instead of format buffer.

From-SVN: r118597
parent e9903c67
2006-11-08 Andrew Pinski <Andrew_Pinski@playstation.sony.com>
* tree-pretty-print.c (dump_generic_node) <INTEGER_CST>: Use
HOST_WIDE_INT_PRINT_DOUBLE_HEX instead of format buffer.
2006-11-08 Roger Sayle <roger@eyesopen.com> 2006-11-08 Roger Sayle <roger@eyesopen.com>
* tree-ssa-propagate.c (set_rhs): Restructure validity tests as a * tree-ssa-propagate.c (set_rhs): Restructure validity tests as a
......
...@@ -732,12 +732,7 @@ dump_generic_node (pretty_printer *buffer, tree node, int spc, int flags, ...@@ -732,12 +732,7 @@ dump_generic_node (pretty_printer *buffer, tree node, int spc, int flags,
/* Would "%x%0*x" or "%x%*0x" get zero-padding on all /* Would "%x%0*x" or "%x%*0x" get zero-padding on all
systems? */ systems? */
{ {
static char format[10]; /* "%x%09999x\0" */ sprintf (pp_buffer (buffer)->digit_buffer, HOST_WIDE_INT_PRINT_DOUBLE_HEX,
if (!format[0])
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_HIGH (val),
TREE_INT_CST_LOW (val)); TREE_INT_CST_LOW (val));
pp_string (buffer, pp_buffer (buffer)->digit_buffer); pp_string (buffer, pp_buffer (buffer)->digit_buffer);
......
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