summaryrefslogtreecommitdiffstats
path: root/contrib/gcc/print-tree.c
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-08-02 14:57:00 +0000
committerbde <bde@FreeBSD.org>1998-08-02 14:57:00 +0000
commit559a9a5f7d40627eaecd0fc3cd60b6d49c3853b9 (patch)
tree5c7532ffe938c31ce7fb57f752fd5ba10773074d /contrib/gcc/print-tree.c
parentaaeb261fcc7eacef2d74ca1937e92075a2de6ff2 (diff)
downloadFreeBSD-src-559a9a5f7d40627eaecd0fc3cd60b6d49c3853b9.zip
FreeBSD-src-559a9a5f7d40627eaecd0fc3cd60b6d49c3853b9.tar.gz
Fixed printf format errors. gcc should have a macro HOST_PTR_PRINTF_TYPE
to go with its HOST_PTR_PRINTF[_FORMAT], since if %p is wrong for the format then `void *' is probably wrong for the type.
Diffstat (limited to 'contrib/gcc/print-tree.c')
-rw-r--r--contrib/gcc/print-tree.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/gcc/print-tree.c b/contrib/gcc/print-tree.c
index 7f9dd10..01e05f8 100644
--- a/contrib/gcc/print-tree.c
+++ b/contrib/gcc/print-tree.c
@@ -82,7 +82,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, (void *) node);
if (class == 'd')
{
@@ -259,7 +259,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, (void *) node);
/* Print the name, if any. */
if (class == 'd')
@@ -456,7 +456,7 @@ print_node (file, prefix, node, indent)
{
fprintf (file, "saved-insns ");
fprintf (file, HOST_PTR_PRINTF,
- (HOST_WIDE_INT) DECL_SAVED_INSNS (node));
+ (void *) DECL_SAVED_INSNS (node));
}
}
OpenPOWER on IntegriCloud