From ca30789c8a33028a0fd0aaf6715d3de460556526 Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Tue, 16 Jun 2015 15:24:54 +0200 Subject: [PATCH] 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 --- gcc/ChangeLog | 6 ++++++ gcc/bitmap.c | 2 +- gcc/hash-table.c | 3 +++ 3 files changed, 10 insertions(+), 1 deletion(-) 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; -- 2.30.2