summaryrefslogtreecommitdiff
path: root/gcc/hash-table.c
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2015-06-16 15:24:54 +0200
committerMartin Liska <marxin@gcc.gnu.org>2015-06-16 13:24:54 +0000
commitca30789c8a33028a0fd0aaf6715d3de460556526 (patch)
tree6c0e87d0db22d0030a590873fd2f9392ab7b7cfb /gcc/hash-table.c
parent022850c0eedd0dd9fc0c6f2d1b41ec3bef031323 (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. From-SVN: r224518
Diffstat (limited to 'gcc/hash-table.c')
-rw-r--r--gcc/hash-table.c3
1 files changed, 3 insertions, 0 deletions
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;