diff options
author | marxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-06-16 13:24:54 +0000 |
---|---|---|
committer | marxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-06-16 13:24:54 +0000 |
commit | f34a836c57573eaceecd4602beb73b370d55c2a8 (patch) | |
tree | 6c0e87d0db22d0030a590873fd2f9392ab7b7cfb | |
parent | f0592840091cfeb63c2927db06c3043147733dca (diff) |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@224518 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/bitmap.c | 2 | ||||
-rw-r--r-- | gcc/hash-table.c | 3 |
3 files changed, 10 insertions, 1 deletions
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 <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. 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<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; |