diff options
author | Richard Kenner <kenner@gcc.gnu.org> | 1993-04-13 17:20:23 -0400 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 1993-04-13 17:20:23 -0400 |
commit | 9520cb3e84a3bcce8d69d6359dceacf53475e128 (patch) | |
tree | 710d20629e76663b94a0b533317e088a05745c86 /gcc/print-tree.c | |
parent | 8b5ba7f89fd028858944c4714af7a0cf02d4f351 (diff) | |
download | gcc-9520cb3e84a3bcce8d69d6359dceacf53475e128.zip gcc-9520cb3e84a3bcce8d69d6359dceacf53475e128.tar.gz gcc-9520cb3e84a3bcce8d69d6359dceacf53475e128.tar.bz2 |
(print_node_brief, print_node): Properly cast arg when printing ints
or rtx.
From-SVN: r4141
Diffstat (limited to 'gcc/print-tree.c')
-rw-r--r-- | gcc/print-tree.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gcc/print-tree.c b/gcc/print-tree.c index f9bbe89..504a808 100644 --- a/gcc/print-tree.c +++ b/gcc/print-tree.c @@ -80,7 +80,7 @@ print_node_brief (file, prefix, node, indent) if (indent > 0) fprintf (file, " "); fprintf (file, "%s <%s ", prefix, tree_code_name[(int) TREE_CODE (node)]); - fprintf (file, HOST_PTR_PRINTF, node); + fprintf (file, HOST_PTR_PRINTF, (HOST_WIDE_INT) node); if (class == 'd') { @@ -226,7 +226,7 @@ print_node (file, prefix, node, indent) /* Print the slot this node is in, and its code, and address. */ fprintf (file, "%s <%s ", prefix, tree_code_name[(int) TREE_CODE (node)]); - fprintf (file, HOST_PTR_PRINTF, node); + fprintf (file, HOST_PTR_PRINTF, (HOST_WIDE_INT) node); /* Print the name, if any. */ if (class == 'd') @@ -392,7 +392,8 @@ print_node (file, prefix, node, indent) else if (TREE_CODE (node) == FUNCTION_DECL) { fprintf (file, "saved-insns "); - fprintf (file, HOST_PTR_PRINTF, DECL_SAVED_INSNS (node)); + fprintf (file, HOST_PTR_PRINTF, + (HOST_WIDE_INT) DECL_SAVED_INSNS (node)); } } @@ -524,7 +525,7 @@ print_node (file, prefix, node, indent) indent_to (file, indent + 4); fprintf (file, "rtl %d ", i); if (TREE_OPERAND (node, i)) - print_rtl (file, TREE_OPERAND (node, i)); + print_rtl (file, (rtx) TREE_OPERAND (node, i)); else fprintf (file, "(nil)"); fprintf (file, "\n"); |