+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>
{
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);
+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
~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));