diff options
author | Joseph Myers <jsm28@cam.ac.uk> | 2000-07-23 10:25:06 -0600 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 2000-07-23 10:25:06 -0600 |
commit | 683eb0e99a52c56e400f690a62236cf66ab4d981 (patch) | |
tree | 53a4b08418f74d22bc685a38db711d1b59bbf82f /gcc/ggc-page.c | |
parent | 317770266dad43b3afcb7856250453f9c8cf412f (diff) | |
download | gcc-683eb0e99a52c56e400f690a62236cf66ab4d981.tar.gz |
bitmap.c (debug_bitmap_file): Cast pointers to PTR for printing with %p.
* bitmap.c (debug_bitmap_file): Cast pointers to PTR for printing
with %p.
* ggc-page.c (debug_print_page_list, alloc_page, free_page,
ggc_alloc): Likewise.
* bb-reorder.c (dump_scope_forest_1): Likewise.
From-SVN: r35201
Diffstat (limited to 'gcc/ggc-page.c')
-rw-r--r-- | gcc/ggc-page.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/gcc/ggc-page.c b/gcc/ggc-page.c index 2a7e1014fd2..c939cf64a9c 100644 --- a/gcc/ggc-page.c +++ b/gcc/ggc-page.c @@ -386,11 +386,13 @@ debug_print_page_list (order) int order; { page_entry *p; - printf ("Head=%p, Tail=%p:\n", G.pages[order], G.page_tails[order]); + printf ("Head=%p, Tail=%p:\n", (PTR) G.pages[order], + (PTR) G.page_tails[order]); p = G.pages[order]; while (p != NULL) { - printf ("%p(%1d|%3d) -> ", p, p->context_depth, p->num_free_objects); + printf ("%p(%1d|%3d) -> ", (PTR) p, p->context_depth, + p->num_free_objects); p = p->next; } printf ("NULL\n"); @@ -504,8 +506,8 @@ alloc_page (order) if (GGC_DEBUG_LEVEL >= 2) fprintf (G.debug_file, - "Allocating page at %p, object size=%d, data %p-%p\n", entry, - 1 << order, page, page + entry_size - 1); + "Allocating page at %p, object size=%d, data %p-%p\n", + (PTR) entry, 1 << order, page, page + entry_size - 1); return entry; } @@ -518,7 +520,7 @@ free_page (entry) { if (GGC_DEBUG_LEVEL >= 2) fprintf (G.debug_file, - "Deallocating page at %p, data %p-%p\n", entry, + "Deallocating page at %p, data %p-%p\n", (PTR) entry, entry->page, entry->page + entry->bytes - 1); set_page_table_entry (entry->page, NULL); @@ -714,7 +716,7 @@ ggc_alloc (size) if (GGC_DEBUG_LEVEL >= 3) fprintf (G.debug_file, "Allocating object, requested size=%d, actual=%d at %p on %p\n", - (int) size, 1 << order, result, entry); + (int) size, 1 << order, result, (PTR) entry); return result; } |