From 48f8fefe5bc5f1fe1e0bddbf3188d59d91ab60be Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Mon, 10 Jun 2019 09:04:39 +0200 Subject: Fix build with --enable-gather-detailed-mem-stats. 2019-06-10 Martin Liska * hash-map.h: Pass default value to hash_table ctor. * hash-table.h: Add default value to call of a ctor. From-SVN: r272104 --- gcc/hash-map.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'gcc/hash-map.h') diff --git a/gcc/hash-map.h b/gcc/hash-map.h index a3ef283..a8eb42d 100644 --- a/gcc/hash-map.h +++ b/gcc/hash-map.h @@ -120,12 +120,14 @@ public: explicit hash_map (size_t n = 13, bool ggc = false, bool gather_mem_stats = GATHER_STATISTICS CXX_MEM_STAT_INFO) - : m_table (n, ggc, gather_mem_stats, HASH_MAP_ORIGIN PASS_MEM_STAT) {} + : m_table (n, ggc, true, gather_mem_stats, HASH_MAP_ORIGIN PASS_MEM_STAT) + { + } explicit hash_map (const hash_map &h, bool ggc = false, bool gather_mem_stats = GATHER_STATISTICS CXX_MEM_STAT_INFO) - : m_table (h.m_table, ggc, gather_mem_stats, + : m_table (h.m_table, ggc, true, gather_mem_stats, HASH_MAP_ORIGIN PASS_MEM_STAT) {} /* Create a hash_map in ggc memory. */ -- cgit v1.1