summaryrefslogtreecommitdiff
path: root/gcc/tree-pretty-print.c
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2007-09-06 05:59:15 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2007-09-06 05:59:15 +0000
commitbb0500b075cf4897caa8b59f528480bf4a23d367 (patch)
treeeaff7bbb706e715316181613e1d5cb1282d73dfa /gcc/tree-pretty-print.c
parent86ef5ebb1e0b3fbb1587396b074be65a61623e85 (diff)
downloadgcc-bb0500b075cf4897caa8b59f528480bf4a23d367.tar.gz
tree-pretty-print.c (dump_decl_name): Cast LABEL_DECL_UID to int when printing.
* tree-pretty-print.c (dump_decl_name): Cast LABEL_DECL_UID to int when printing. (dump_generic_node): Likewise. * print-rtl.c (print_decl_name): Likewise. * print-tree.c (print_node_brief): Likewise. (print_node): Likewise. * Makefile.in (RTL_BASE_H): Add alias.h. (TREE_H): Likewise. From-SVN: r128175
Diffstat (limited to 'gcc/tree-pretty-print.c')
-rw-r--r--gcc/tree-pretty-print.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/gcc/tree-pretty-print.c b/gcc/tree-pretty-print.c
index bc7ebf4ea79..a7b97cdcb5c 100644
--- a/gcc/tree-pretty-print.c
+++ b/gcc/tree-pretty-print.c
@@ -179,8 +179,7 @@ dump_decl_name (pretty_printer *buffer, tree node, int flags)
{
if (TREE_CODE (t) == LABEL_DECL
&& LABEL_DECL_UID (t) != -1)
- pp_printf (buffer, "L.%wd",
- LABEL_DECL_UID (t));
+ pp_printf (buffer, "L.%d", (int) LABEL_DECL_UID (t));
else
{
char c = TREE_CODE (t) == CONST_DECL ? 'C' : 'D';
@@ -870,8 +869,7 @@ dump_generic_node (pretty_printer *buffer, tree node, int spc, int flags,
if (DECL_NAME (node))
dump_decl_name (buffer, node, flags);
else if (LABEL_DECL_UID (node) != -1)
- pp_printf (buffer, "<L%wd>",
- LABEL_DECL_UID (node));
+ pp_printf (buffer, "<L%d>", (int) LABEL_DECL_UID (node));
else
pp_printf (buffer, "<D.%u>", DECL_UID (node));
break;