From: Martin Liska Date: Tue, 16 Jun 2015 13:24:54 +0000 (+0200) Subject: Fallout for new memory statistics infrastructure. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ca30789c8a33028a0fd0aaf6715d3de460556526;p=gcc.git Fallout for new memory statistics infrastructure. * bitmap.c (dump_bitmap_statistics): Fix GNU coding style. * hash-table.c (void dump_hash_table_loc_statistics): Add missing guard. From-SVN: r224518 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ba5f85404a3..d15ba870c66 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2015-06-16 Martin Liska + + * bitmap.c (dump_bitmap_statistics): Fix GNU coding style. + * hash-table.c (void dump_hash_table_loc_statistics): Add missing + guard. + 2015-06-16 Richard Biener * tree-vect-stmts.c (vectorizable_store): Adjust. diff --git a/gcc/bitmap.c b/gcc/bitmap.c index 733c76727cd..bafb4cc91c9 100644 --- a/gcc/bitmap.c +++ b/gcc/bitmap.c @@ -2074,7 +2074,7 @@ bitmap_print (FILE *file, const_bitmap head, const char *prefix, void dump_bitmap_statistics (void) { - if (! GATHER_STATISTICS) + if (!GATHER_STATISTICS) return; bitmap_mem_desc.dump (BITMAP_ORIGIN); diff --git a/gcc/hash-table.c b/gcc/hash-table.c index a42b884189d..1ae986eeaea 100644 --- a/gcc/hash-table.c +++ b/gcc/hash-table.c @@ -103,6 +103,9 @@ mem_alloc_description hash_table_usage; /* Support function for statistics. */ void dump_hash_table_loc_statistics (void) { + if (!GATHER_STATISTICS) + return; + for (unsigned i = HASH_TABLE_ORIGIN; i <= HASH_SET_ORIGIN; i++) { mem_alloc_origin origin = (mem_alloc_origin) i;