c-pretty-print.c (pp_c_integer_literal): Use HOST_WIDE_INT_PRINT_DOUBLE_HEX.
gcc: * c-pretty-print.c (pp_c_integer_literal): Use HOST_WIDE_INT_PRINT_DOUBLE_HEX. cp: * error.c (dump_expr): Use HOST_WIDE_INT_PRINT_DOUBLE_HEX. From-SVN: r67055
This commit is contained in:
parent
bc6688b40e
commit
58228df67b
@ -1,3 +1,8 @@
|
||||
2003-05-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
|
||||
|
||||
* c-pretty-print.c (pp_c_integer_literal): Use
|
||||
HOST_WIDE_INT_PRINT_DOUBLE_HEX.
|
||||
|
||||
2003-05-20 Roger Sayle <roger@eyesopen.com>
|
||||
Kazu Hirata <kazu@cs.umass.edu>
|
||||
Joern Rennecke <joern.rennecke@superh.com>
|
||||
|
@ -449,14 +449,11 @@ pp_c_integer_literal (ppi, i)
|
||||
{
|
||||
if (tree_int_cst_sgn (i) < 0)
|
||||
{
|
||||
static char format[10]; /* "%x%09999x\0" */
|
||||
if (!format[0])
|
||||
sprintf (format, "%%x%%0%dx", HOST_BITS_PER_INT / 4);
|
||||
|
||||
pp_c_char (ppi, '-');
|
||||
i = build_int_2 (-TREE_INT_CST_LOW (i),
|
||||
~TREE_INT_CST_HIGH (i) + !TREE_INT_CST_LOW (i));
|
||||
sprintf (pp_buffer (ppi)->digit_buffer, format,
|
||||
sprintf (pp_buffer (ppi)->digit_buffer,
|
||||
HOST_WIDE_INT_PRINT_DOUBLE_HEX,
|
||||
TREE_INT_CST_HIGH (i), TREE_INT_CST_LOW (i));
|
||||
pp_identifier (ppi, pp_buffer (ppi)->digit_buffer);
|
||||
|
||||
|
@ -1,3 +1,7 @@
|
||||
2003-05-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
|
||||
|
||||
* error.c (dump_expr): Use HOST_WIDE_INT_PRINT_DOUBLE_HEX.
|
||||
|
||||
2003-05-21 Danny Smith <dannysmith@users.sourceforge.net>
|
||||
|
||||
PR c++/9738
|
||||
|
@ -1471,16 +1471,9 @@ dump_expr (tree t, int flags)
|
||||
~TREE_INT_CST_HIGH (val)
|
||||
+ !TREE_INT_CST_LOW (val));
|
||||
}
|
||||
/* Would "%x%0*x" or "%x%*0x" get zero-padding on all
|
||||
systems? */
|
||||
{
|
||||
static char format[12]; /* "0x%x%09999x\0" */
|
||||
if (!format[0])
|
||||
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);
|
||||
}
|
||||
sprintf (digit_buffer, HOST_WIDE_INT_PRINT_DOUBLE_HEX,
|
||||
TREE_INT_CST_HIGH (val), TREE_INT_CST_LOW (val));
|
||||
output_add_string (scratch_buffer, digit_buffer);
|
||||
}
|
||||
else
|
||||
print_integer (scratch_buffer, TREE_INT_CST_LOW (t));
|
||||
|
Loading…
Reference in New Issue
Block a user