From 0d0e2cabf7f6946b319788ebb884c0e9e35790bd Mon Sep 17 00:00:00 2001 From: mliska Date: Mon, 8 Jun 2015 10:39:12 +0200 Subject: [PATCH] Fallout for new memory statistics infrastructure. gcc/ChangeLog: 2015-06-08 Martin Liska * bitmap.c (dump_bitmap_statistics): Fix GNU coding style. * hash-table.c (void dump_hash_table_loc_statistics): Add missing guard. --- gcc/bitmap.c | 2 +- gcc/hash-table.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/gcc/bitmap.c b/gcc/bitmap.c index 5fc4654..20a093c 100644 --- a/gcc/bitmap.c +++ b/gcc/bitmap.c @@ -2079,7 +2079,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); diff --git a/gcc/hash-table.c b/gcc/hash-table.c index 012b241..ee972e7 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; i <= HASH_SET; i++) { mem_alloc_origin origin = (mem_alloc_origin) i; -- 2.1.4