summaryrefslogtreecommitdiff
path: root/gcc/print-tree.c
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1998-01-17 22:50:40 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1998-01-17 22:50:40 +0000
commit7040045e7d3d140a69267aefd4f600234a85abd6 (patch)
treee743d2ca1fcb604f39a4230fab8087c5f6870b63 /gcc/print-tree.c
parentae5e3e3f8239356ebcf98e94b44b9efb3e361c16 (diff)
downloadgcc-7040045e7d3d140a69267aefd4f600234a85abd6.tar.gz
* varasm.c (immed_double_const): Add casts to HOST_WIDE_INT where
necessary. (const_hash): Hash val is unsigned long. (SYMHASH): Likewise. * tree.c (TYPE_HASH): Type of hash val is unsigned long. * print-tree.c (print_node_brief): HOST_PTR_PRINTF format wants a char pointer, not HOST_WIDE_INT. (print_node): Likewise. Also hash is unsigned long not HOST_WIDE_INT. * cse.c (canon_hash): Hash is unsigned long not HOST_WIDE_INT. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@17403 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/print-tree.c')
-rw-r--r--gcc/print-tree.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/print-tree.c b/gcc/print-tree.c
index 8d7db2b987b..f075f0b3834 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, (HOST_WIDE_INT) node);
+ fprintf (file, HOST_PTR_PRINTF, (char *) node);
if (class == 'd')
{
@@ -216,7 +216,7 @@ print_node (file, prefix, node, indent)
return;
}
- hash = ((unsigned HOST_WIDE_INT) node) % HASH_SIZE;
+ hash = ((unsigned long) node) % HASH_SIZE;
/* If node is in the table, just mention its address. */
for (b = table[hash]; b; b = b->next)
@@ -237,7 +237,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, (HOST_WIDE_INT) node);
+ fprintf (file, HOST_PTR_PRINTF, (char *) node);
/* Print the name, if any. */
if (class == 'd')
@@ -433,7 +433,7 @@ print_node (file, prefix, node, indent)
{
fprintf (file, "saved-insns ");
fprintf (file, HOST_PTR_PRINTF,
- (HOST_WIDE_INT) DECL_SAVED_INSNS (node));
+ (char *) DECL_SAVED_INSNS (node));
}
}