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

From-SVN: r231658
This commit is contained in:
Jason Merrill 2015-12-15 11:21:50 -05:00 committed by Jason Merrill
parent 57e8ab2468
commit 951c9e90e3
3 changed files with 11 additions and 6 deletions

View file

@ -1,3 +1,7 @@
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>
* cgraphunit.c (output_in_order): Do not assemble "omp declare target

View file

@ -111,8 +111,9 @@ public:
CXX_MEM_STAT_INFO)
: m_table (n, ggc, gather_mem_stats, HASH_MAP_ORIGIN PASS_MEM_STAT) {}
hash_map (const hash_map &h, bool ggc = false,
bool gather_mem_stats = GATHER_STATISTICS CXX_MEM_STAT_INFO)
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,
HASH_MAP_ORIGIN PASS_MEM_STAT) {}

View file

@ -365,10 +365,10 @@ public:
bool gather_mem_stats = GATHER_STATISTICS,
mem_alloc_origin origin = HASH_TABLE_ORIGIN
CXX_MEM_STAT_INFO);
hash_table (const hash_table &, bool ggc = false,
bool gather_mem_stats = GATHER_STATISTICS,
mem_alloc_origin origin = HASH_TABLE_ORIGIN
CXX_MEM_STAT_INFO);
explicit hash_table (const hash_table &, bool ggc = false,
bool gather_mem_stats = GATHER_STATISTICS,
mem_alloc_origin origin = HASH_TABLE_ORIGIN
CXX_MEM_STAT_INFO);
~hash_table ();
/* Create a hash_table in gc memory. */