Unbreak --enable-gather-detailed-mem-stats bootstrap
Kenneth Zadeck
zadeck@naturalbridge.com
Sun Apr 1 19:24:00 GMT 2007
Jan Hubicka wrote:
> Hi,
> this patch fixes two typos breaking --enable-gather-detailed-mem-stats
> build, so hopefully memory tester will start tracking mainline again (it
> broke at 26th). I've bootstrapped/regtested x86_64-linux with stats
> enabled and comitted this as obvious.
>
> Kenny, let me know once this patch get to dataflow branch and I will
> switch memory tester again, for a moment I will let it track mainline so
> we can see how things envolved.
>
>
Ok to check this into the dataflow branch.
kenny
> Honza
> * ggc-page.c (ggc_print_statistics): Fix formatting string to avoid
> waring on 64bit hosts.
> * bitmap.h: Fix typo in bitmap_head_def.
> Index: ggc-page.c
> ===================================================================
> --- ggc-page.c (revision 123402)
> +++ ggc-page.c (working copy)
> @@ -2017,10 +2017,10 @@ ggc_print_statistics (void)
> for (i = 0; i < NUM_ORDERS; i++)
> if (G.stats.total_allocated_per_order[i])
> {
> - fprintf (stderr, "Total Overhead page size %7ul: %10lld\n",
> + fprintf (stderr, "Total Overhead page size %7lu: %10lld\n",
> (unsigned long) OBJECT_SIZE (i),
> G.stats.total_overhead_per_order[i]);
> - fprintf (stderr, "Total Allocated page size %7ul: %10lld\n",
> + fprintf (stderr, "Total Allocated page size %7lu: %10lld\n",
> (unsigned long) OBJECT_SIZE (i),
> G.stats.total_allocated_per_order[i]);
> }
> Index: bitmap.h
> ===================================================================
> --- bitmap.h (revision 123402)
> +++ bitmap.h (working copy)
> @@ -80,7 +80,7 @@ typedef struct bitmap_head_def GTY(()) {
> unsigned int indx; /* Index of last element looked at. */
> bitmap_obstack *obstack; /* Obstack to allocate elements from.
> If NULL, then use ggc_alloc. */
> -#ifndef GATHER_STATISTICS
> +#ifdef GATHER_STATISTICS
> struct bitmap_descriptor GTY((skip)) *desc;
> #endif
> } bitmap_head;
>
More information about the Gcc-patches
mailing list