diff options
author | Martin Liska <mliska@suse.cz> | 2019-06-10 09:04:39 +0200 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2019-06-10 07:04:39 +0000 |
commit | 48f8fefe5bc5f1fe1e0bddbf3188d59d91ab60be (patch) | |
tree | 507c1d40de4562cde7af60b5334d571f5a4c2517 /gcc/hash-map.h | |
parent | 027c94b8b45f2c9c11baa6f8b69e542e12767b16 (diff) | |
download | gcc-48f8fefe5bc5f1fe1e0bddbf3188d59d91ab60be.zip gcc-48f8fefe5bc5f1fe1e0bddbf3188d59d91ab60be.tar.gz gcc-48f8fefe5bc5f1fe1e0bddbf3188d59d91ab60be.tar.bz2 |
Fix build with --enable-gather-detailed-mem-stats.
2019-06-10 Martin Liska <mliska@suse.cz>
* hash-map.h: Pass default value to hash_table ctor.
* hash-table.h: Add default value to call of a ctor.
From-SVN: r272104
Diffstat (limited to 'gcc/hash-map.h')
-rw-r--r-- | gcc/hash-map.h | 6 |
1 files changed, 4 insertions, 2 deletions
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. */ |