Commit 951c9e90 by Jason Merrill Committed by Jason Merrill

* hash-map.h, hash-table.h: Make copy constructors explicit.

From-SVN: r231658
parent 57e8ab24
2015-12-15 Jason Merrill <jason@redhat.com>
* hash-map.h, hash-table.h: Make copy constructors explicit.
2015-12-15 Ilya Verbin <ilya.verbin@intel.com> 2015-12-15 Ilya Verbin <ilya.verbin@intel.com>
* cgraphunit.c (output_in_order): Do not assemble "omp declare target * cgraphunit.c (output_in_order): Do not assemble "omp declare target
...@@ -111,8 +111,9 @@ public: ...@@ -111,8 +111,9 @@ public:
CXX_MEM_STAT_INFO) CXX_MEM_STAT_INFO)
: m_table (n, ggc, gather_mem_stats, HASH_MAP_ORIGIN PASS_MEM_STAT) {} : m_table (n, ggc, gather_mem_stats, HASH_MAP_ORIGIN PASS_MEM_STAT) {}
hash_map (const hash_map &h, bool ggc = false, explicit hash_map (const hash_map &h, bool ggc = false,
bool gather_mem_stats = GATHER_STATISTICS CXX_MEM_STAT_INFO) 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, gather_mem_stats,
HASH_MAP_ORIGIN PASS_MEM_STAT) {} HASH_MAP_ORIGIN PASS_MEM_STAT) {}
......
...@@ -365,10 +365,10 @@ public: ...@@ -365,10 +365,10 @@ public:
bool gather_mem_stats = GATHER_STATISTICS, bool gather_mem_stats = GATHER_STATISTICS,
mem_alloc_origin origin = HASH_TABLE_ORIGIN mem_alloc_origin origin = HASH_TABLE_ORIGIN
CXX_MEM_STAT_INFO); CXX_MEM_STAT_INFO);
hash_table (const hash_table &, bool ggc = false, explicit hash_table (const hash_table &, bool ggc = false,
bool gather_mem_stats = GATHER_STATISTICS, bool gather_mem_stats = GATHER_STATISTICS,
mem_alloc_origin origin = HASH_TABLE_ORIGIN mem_alloc_origin origin = HASH_TABLE_ORIGIN
CXX_MEM_STAT_INFO); CXX_MEM_STAT_INFO);
~hash_table (); ~hash_table ();
/* Create a hash_table in gc memory. */ /* Create a hash_table in gc memory. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment