pretty-print.h (pp_unsigned_wide_integer): New.
2011-09-02 Richard Guenther <rguenther@suse.de> * pretty-print.h (pp_unsigned_wide_integer): New. * tree-pretty-print.c (dump_generic_node): Print unsigned host-wide-int fitting INTEGER_CSTs with pp_unsigned_wide_integer. From-SVN: r178479
This commit is contained in:
parent
6aa67e7b99
commit
aa547a51da
@ -1,3 +1,9 @@
|
|||||||
|
2011-09-02 Richard Guenther <rguenther@suse.de>
|
||||||
|
|
||||||
|
* pretty-print.h (pp_unsigned_wide_integer): New.
|
||||||
|
* tree-pretty-print.c (dump_generic_node): Print unsigned
|
||||||
|
host-wide-int fitting INTEGER_CSTs with pp_unsigned_wide_integer.
|
||||||
|
|
||||||
2011-09-02 Richard Sandiford <richard.sandiford@linaro.org>
|
2011-09-02 Richard Sandiford <richard.sandiford@linaro.org>
|
||||||
|
|
||||||
PR target/49987
|
PR target/49987
|
||||||
|
@ -276,6 +276,8 @@ struct pretty_print_info
|
|||||||
} \
|
} \
|
||||||
while (0)
|
while (0)
|
||||||
#define pp_decimal_int(PP, I) pp_scalar (PP, "%d", I)
|
#define pp_decimal_int(PP, I) pp_scalar (PP, "%d", I)
|
||||||
|
#define pp_unsigned_wide_integer(PP, I) \
|
||||||
|
pp_scalar (PP, HOST_WIDE_INT_PRINT_UNSIGNED, (unsigned HOST_WIDE_INT) I)
|
||||||
#define pp_wide_integer(PP, I) \
|
#define pp_wide_integer(PP, I) \
|
||||||
pp_scalar (PP, HOST_WIDE_INT_PRINT_DEC, (HOST_WIDE_INT) I)
|
pp_scalar (PP, HOST_WIDE_INT_PRINT_DEC, (HOST_WIDE_INT) I)
|
||||||
#define pp_widest_integer(PP, I) \
|
#define pp_widest_integer(PP, I) \
|
||||||
|
@ -1002,7 +1002,11 @@ dump_generic_node (pretty_printer *buffer, tree node, int spc, int flags,
|
|||||||
pp_wide_integer (buffer, TREE_INT_CST_LOW (node));
|
pp_wide_integer (buffer, TREE_INT_CST_LOW (node));
|
||||||
pp_string (buffer, "B"); /* pseudo-unit */
|
pp_string (buffer, "B"); /* pseudo-unit */
|
||||||
}
|
}
|
||||||
else if (! host_integerp (node, 0))
|
else if (host_integerp (node, 0))
|
||||||
|
pp_wide_integer (buffer, TREE_INT_CST_LOW (node));
|
||||||
|
else if (host_integerp (node, 1))
|
||||||
|
pp_unsigned_wide_integer (buffer, TREE_INT_CST_LOW (node));
|
||||||
|
else
|
||||||
{
|
{
|
||||||
tree val = node;
|
tree val = node;
|
||||||
unsigned HOST_WIDE_INT low = TREE_INT_CST_LOW (val);
|
unsigned HOST_WIDE_INT low = TREE_INT_CST_LOW (val);
|
||||||
@ -1021,8 +1025,6 @@ dump_generic_node (pretty_printer *buffer, tree node, int spc, int flags,
|
|||||||
(unsigned HOST_WIDE_INT) high, low);
|
(unsigned HOST_WIDE_INT) high, low);
|
||||||
pp_string (buffer, pp_buffer (buffer)->digit_buffer);
|
pp_string (buffer, pp_buffer (buffer)->digit_buffer);
|
||||||
}
|
}
|
||||||
else
|
|
||||||
pp_wide_integer (buffer, TREE_INT_CST_LOW (node));
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case REAL_CST:
|
case REAL_CST:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user