summaryrefslogtreecommitdiff
path: root/gcc/hash-table.c
diff options
context:
space:
mode:
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;