@@ -28311,8 +28311,9 @@ declare_integer_pack (void)
void
init_template_processing (void)
{
- decl_specializations = hash_table<spec_hasher>::create_ggc (37);
- type_specializations = hash_table<spec_hasher>::create_ggc (37);
+ /* FIXME: enable sanitization (PR87847) */
+ decl_specializations = hash_table<spec_hasher>::create_ggc (37, false);
+ type_specializations = hash_table<spec_hasher>::create_ggc (37, false);
if (cxx_dialect >= cxx11)
declare_integer_pack ();
@@ -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;
}