aboutsummaryrefslogtreecommitdiff
path: root/gcc/print-tree.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/print-tree.c
parent86ef5ebb1e0b3fbb1587396b074be65a61623e85 (diff)
downloadgcc-bb0500b075cf4897caa8b59f528480bf4a23d367.zip
gcc-bb0500b075cf4897caa8b59f528480bf4a23d367.tar.gz
gcc-bb0500b075cf4897caa8b59f528480bf4a23d367.tar.bz2
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/print-tree.c')
-rw-r--r--gcc/print-tree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/print-tree.c b/gcc/print-tree.c
index 22a1e2e..7f3c5a3 100644
--- a/gcc/print-tree.c
+++ b/gcc/print-tree.c
@@ -92,7 +92,7 @@ print_node_brief (FILE *file, const char *prefix, const_tree node, int indent)
fprintf (file, " %s", IDENTIFIER_POINTER (DECL_NAME (node)));
else if (TREE_CODE (node) == LABEL_DECL
&& LABEL_DECL_UID (node) != -1)
- fprintf (file, " L." HOST_WIDE_INT_PRINT_DEC, LABEL_DECL_UID (node));
+ fprintf (file, " L.%d", (int) LABEL_DECL_UID (node));
else
fprintf (file, " %c.%u", TREE_CODE (node) == CONST_DECL ? 'C' : 'D',
DECL_UID (node));
@@ -250,7 +250,7 @@ print_node (FILE *file, const char *prefix, tree node, int indent)
fprintf (file, " %s", IDENTIFIER_POINTER (DECL_NAME (node)));
else if (TREE_CODE (node) == LABEL_DECL
&& LABEL_DECL_UID (node) != -1)
- fprintf (file, " L." HOST_WIDE_INT_PRINT_DEC, LABEL_DECL_UID (node));
+ fprintf (file, " L.%d", (int) LABEL_DECL_UID (node));
else
fprintf (file, " %c.%u", TREE_CODE (node) == CONST_DECL ? 'C' : 'D',
DECL_UID (node));