diff mbox series

[OBVIOUS] Fix build with --enable-gather-detailed-mem-stats.

Message ID c6c7f45a-51c9-c521-6fd9-6647104f75b7@suse.cz
State New
Headers show
Series [OBVIOUS] Fix build with --enable-gather-detailed-mem-stats. | expand

Commit Message

Martin Liška June 10, 2019, 6:59 a.m. UTC
Hi.

This is one more fix of the hash_table where I forgot to pass
a new parameter in hash_table::hash_table.

I'm going to install it as obvious.
Martin

gcc/ChangeLog:

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.
---
 gcc/hash-map.h   | 6 ++++--
 gcc/hash-table.h | 2 +-
 2 files changed, 5 insertions(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/gcc/hash-map.h b/gcc/hash-map.h
index a3ef283a1f9..a8eb42d5a03 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.  */
diff --git a/gcc/hash-table.h b/gcc/hash-table.h
index 686a13dbd4b..6c1fca3459b 100644
--- a/gcc/hash-table.h
+++ b/gcc/hash-table.h
@@ -389,7 +389,7 @@  public:
   create_ggc (size_t n CXX_MEM_STAT_INFO)
   {
     hash_table *table = ggc_alloc<hash_table> ();
-    new (table) hash_table (n, true, GATHER_STATISTICS,
+    new (table) hash_table (n, true, true, GATHER_STATISTICS,
 			    HASH_TABLE_ORIGIN PASS_MEM_STAT);
     return table;
   }