Commit 8a951190 by Andreas Jaeger

ggc-page.c (alloc_page): Cast variables of type size_t to unsigned long, adjust…

ggc-page.c (alloc_page): Cast variables of type size_t to unsigned long, adjust printf format string.

	* ggc-page.c (alloc_page): Cast variables of type size_t to
	unsigned long, adjust printf format string.
	(ggc_alloc): Likewise.
	(ggc_print_statistics): Likewise.
	(ggc_print_statistics): Correct printf format string for SCALE to
	use unsigned long.

From-SVN: r53820
parent f29e2ec0
2002-05-24 Andreas Jaeger <aj@suse.de>
* ggc-page.c (alloc_page): Cast variables of type size_t to
unsigned long, adjust printf format string.
(ggc_alloc): Likewise.
(ggc_print_statistics): Likewise.
(ggc_print_statistics): Correct printf format string for SCALE to
use unsigned long.
2002-05-24 Danny Smith <dannysmith@users.sourceforge.net> 2002-05-24 Danny Smith <dannysmith@users.sourceforge.net>
* config/i386/mingw32.h (CPP_SPEC): Remove -remap. * config/i386/mingw32.h (CPP_SPEC): Remove -remap.
...@@ -8,14 +17,14 @@ ...@@ -8,14 +17,14 @@
* config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Properly output * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Properly output
quoted strings. quoted strings.
* dwarf2out.c (lookup_filename): Properly quote filename in .file * dwarf2out.c (lookup_filename): Properly quote filename in .file
directive in assembly file. directive in assembly file.
* config/m68k/dpx2.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise. * config/m68k/dpx2.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
* config/m88k/m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise. * config/m88k/m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
* config/pj/pj.h (ASM_FILE_START): Likewise. * config/pj/pj.h (ASM_FILE_START): Likewise.
* config/rs6000/xcoff.h (ASM_FILE_START): Likewise. * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
* config/avr/avr.c (asm_file_end): Likewise. * config/avr/avr.c (asm_file_end): Likewise.
* toplev.c (output_quoted_string): Handle possibly signed plain * toplev.c (output_quoted_string): Handle possibly signed plain
char. char.
* toplev.h (output_clean_symbol_name): Declare * toplev.h (output_clean_symbol_name): Declare
* toplev.c (output_clean_symbol_name): Define. * toplev.c (output_clean_symbol_name): Define.
* config/alpha/alpha.c (unicosmk_output_module_name): Use it. * config/alpha/alpha.c (unicosmk_output_module_name): Use it.
...@@ -289,7 +298,7 @@ Thu May 23 19:43:41 CEST 2002 Jan Hubicka <jh@suse.cz> ...@@ -289,7 +298,7 @@ Thu May 23 19:43:41 CEST 2002 Jan Hubicka <jh@suse.cz>
* config/i386/i386.c, config/i386/i386.h: Tidy comments and whitespace. * config/i386/i386.c, config/i386/i386.h: Tidy comments and whitespace.
(ix86_arch): Set type to enum processor_type. (ix86_arch): Set type to enum processor_type.
* config/i386/i386.md (movsi_1, movdi_1_rex64): Use * config/i386/i386.md (movsi_1, movdi_1_rex64): Use
LEGITIMATE_PIC_OPERAND_P not SYMBOLIC_CONST. LEGITIMATE_PIC_OPERAND_P not SYMBOLIC_CONST.
2002-05-23 Jakub Jelinek <jakub@redhat.com> 2002-05-23 Jakub Jelinek <jakub@redhat.com>
...@@ -500,7 +509,7 @@ objc: ...@@ -500,7 +509,7 @@ objc:
2002-05-21 Jeffrey A Law <law@redhat.com> 2002-05-21 Jeffrey A Law <law@redhat.com>
* optabs.c (expand_binop): For double-word integer multiplies, * optabs.c (expand_binop): For double-word integer multiplies,
do not compute intermediate results into something that is do not compute intermediate results into something that is
not a register (such as a SUBREG or MEM). not a register (such as a SUBREG or MEM).
......
...@@ -732,8 +732,8 @@ alloc_page (order) ...@@ -732,8 +732,8 @@ alloc_page (order)
if (GGC_DEBUG_LEVEL >= 2) if (GGC_DEBUG_LEVEL >= 2)
fprintf (G.debug_file, fprintf (G.debug_file,
"Allocating page at %p, object size=%ld, data %p-%p\n", "Allocating page at %p, object size=%lu, data %p-%p\n",
(PTR) entry, (long) OBJECT_SIZE (order), page, (PTR) entry, (unsigned long) OBJECT_SIZE (order), page,
page + entry_size - 1); page + entry_size - 1);
return entry; return entry;
...@@ -954,8 +954,9 @@ ggc_alloc (size) ...@@ -954,8 +954,9 @@ ggc_alloc (size)
if (GGC_DEBUG_LEVEL >= 3) if (GGC_DEBUG_LEVEL >= 3)
fprintf (G.debug_file, fprintf (G.debug_file,
"Allocating object, requested size=%ld, actual=%ld at %p on %p\n", "Allocating object, requested size=%lu, actual=%lu at %p on %p\n",
(long) size, (long) OBJECT_SIZE (order), result, (PTR) entry); (unsigned long) size, (unsigned long) OBJECT_SIZE (order), result,
(PTR) entry);
return result; return result;
} }
...@@ -1500,13 +1501,14 @@ ggc_print_statistics () ...@@ -1500,13 +1501,14 @@ ggc_print_statistics ()
overhead += (sizeof (page_entry) - sizeof (long) overhead += (sizeof (page_entry) - sizeof (long)
+ BITMAP_SIZE (OBJECTS_PER_PAGE (i) + 1)); + BITMAP_SIZE (OBJECTS_PER_PAGE (i) + 1));
} }
fprintf (stderr, "%-5d %10ld%c %10ld%c %10ld%c\n", OBJECT_SIZE (i), fprintf (stderr, "%-5lu %10lu%c %10lu%c %10lu%c\n",
(unsigned long) OBJECT_SIZE (i),
SCALE (allocated), LABEL (allocated), SCALE (allocated), LABEL (allocated),
SCALE (in_use), LABEL (in_use), SCALE (in_use), LABEL (in_use),
SCALE (overhead), LABEL (overhead)); SCALE (overhead), LABEL (overhead));
total_overhead += overhead; total_overhead += overhead;
} }
fprintf (stderr, "%-5s %10ld%c %10ld%c %10ld%c\n", "Total", fprintf (stderr, "%-5s %10lu%c %10lu%c %10lu%c\n", "Total",
SCALE (G.bytes_mapped), LABEL (G.bytes_mapped), SCALE (G.bytes_mapped), LABEL (G.bytes_mapped),
SCALE (G.allocated), LABEL(G.allocated), SCALE (G.allocated), LABEL(G.allocated),
SCALE (total_overhead), LABEL (total_overhead)); SCALE (total_overhead), LABEL (total_overhead));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment