From f5c08287e25d8b02d0e9574960ce21c6ea13bee9 Mon Sep 17 00:00:00 2001 From: Michael Matz Date: Fri, 11 Dec 2015 11:29:02 +0000 Subject: hash-map.h (hash_map::hash_map): Gather statistics only when GATHER_STATISTICS is true. * hash-map.h (hash_map::hash_map): Gather statistics only when GATHER_STATISTICS is true. * hash-set.h (hash_set::hash_set): Ditto. * hash-table.h (hash_table::hash_table): Ditto. (hash_table::create_ggc): Ditto. From-SVN: r231560 --- gcc/hash-set.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/hash-set.h') diff --git a/gcc/hash-set.h b/gcc/hash-set.h index 8a7c9a0..602f9e7 100644 --- a/gcc/hash-set.h +++ b/gcc/hash-set.h @@ -27,7 +27,7 @@ class hash_set public: typedef typename Traits::value_type Key; explicit hash_set (size_t n = 13, bool ggc = false CXX_MEM_STAT_INFO) - : m_table (n, ggc, true, HASH_SET_ORIGIN PASS_MEM_STAT) {} + : m_table (n, ggc, GATHER_STATISTICS, HASH_SET_ORIGIN PASS_MEM_STAT) {} /* Create a hash_set in gc memory with space for at least n elements. */ -- cgit v1.1