Fallout for new memory statistics infrastructure.
authormarxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 16 Jun 2015 13:24:54 +0000 (13:24 +0000)
committermarxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 16 Jun 2015 13:24:54 +0000 (13:24 +0000)
        * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
* hash-table.c (void dump_hash_table_loc_statistics): Add missing
guard.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@224518 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/bitmap.c
gcc/hash-table.c

index ba5f854..d15ba87 100644 (file)
@@ -1,3 +1,9 @@
+2015-06-16  Martin Liska  <mliska@suse.cz>
+
+       * 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  <rguenther@suse.de>
 
        * tree-vect-stmts.c (vectorizable_store): Adjust.
index 733c767..bafb4cc 100644 (file)
@@ -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);
index a42b884..1ae986e 100644 (file)
@@ -103,6 +103,9 @@ mem_alloc_description<mem_usage> 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;