Commit 2d30fe53 by Mike Stump Committed by Mike Stump

error.c (dump_expr): Add 0x to printed hex numbers to make output match source code better.

        * error.c (dump_expr): Add 0x to printed hex numbers to make
        output match source code better.

From-SVN: r64997
parent 7d798969
2003-03-28 Mike Stump <mrs@apple.com>
* error.c (dump_expr): Add 0x to printed hex numbers to make
output match source code better.
2003-03-28 Mark Mitchell <mark@codesourcery.com>
PR c++/10218
......
......@@ -1474,9 +1474,9 @@ dump_expr (tree t, int flags)
/* Would "%x%0*x" or "%x%*0x" get zero-padding on all
systems? */
{
static char format[10]; /* "%x%09999x\0" */
static char format[12]; /* "0x%x%09999x\0" */
if (!format[0])
sprintf (format, "%%x%%0%dx", HOST_BITS_PER_INT / 4);
sprintf (format, "0x%%x%%0%dx", HOST_BITS_PER_INT / 4);
sprintf (digit_buffer, format, TREE_INT_CST_HIGH (val),
TREE_INT_CST_LOW (val));
output_add_string (scratch_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