summaryrefslogtreecommitdiff
path: root/gcc/hash-table.h
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2019-06-11 09:55:19 +0200
committerMartin Liska <marxin@gcc.gnu.org>2019-06-11 07:55:19 +0000
commit3f2cf0365782a0d5acf637b7513dd333af43ea05 (patch)
tree848186978482b7c239f7e021806f8e461cdbdfdd /gcc/hash-table.h
parent0d7b3e477bd705a9ff301dccd6abb729918a4551 (diff)
Disable htable sanitization in pt.c (PR c++/87847).
2019-06-11 Martin Liska <mliska@suse.cz> PR c++/87847 * hash-table.h: Extend create_gcc, add one parameter that is passed into hash_table::hash_table. 2019-06-11 Martin Liska <mliska@suse.cz> PR c++/87847 * pt.c (init_template_processing): Disable hash table sanitization for decl_specializations and type_specializations. From-SVN: r272144
Diffstat (limited to 'gcc/hash-table.h')
-rw-r--r--gcc/hash-table.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/hash-table.h b/gcc/hash-table.h
index 6c1fca3459b..4f5e150a0ac 100644
--- a/gcc/hash-table.h
+++ b/gcc/hash-table.h
@@ -386,10 +386,10 @@ public:
/* Create a hash_table in gc memory. */
static hash_table *
- create_ggc (size_t n CXX_MEM_STAT_INFO)
+ create_ggc (size_t n, bool sanitize_eq_and_hash = true CXX_MEM_STAT_INFO)
{
hash_table *table = ggc_alloc<hash_table> ();
- new (table) hash_table (n, true, true, GATHER_STATISTICS,
+ new (table) hash_table (n, true, sanitize_eq_and_hash, GATHER_STATISTICS,
HASH_TABLE_ORIGIN PASS_MEM_STAT);
return table;
}