aboutsummaryrefslogtreecommitdiff
path: root/gcc/hash-set.h
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2019-06-07 14:13:13 +0200
committerMartin Liska <marxin@gcc.gnu.org>2019-06-07 12:13:13 +0000
commit510c9192493b6af5c4c70b14390fe340bca8ecaa (patch)
treec2e8bab0a5b755fef04328d8776654af5bc76f67 /gcc/hash-set.h
parent686a56a85d39750cd5c0c42f2ea747c8632e519e (diff)
downloadgcc-510c9192493b6af5c4c70b14390fe340bca8ecaa.zip
gcc-510c9192493b6af5c4c70b14390fe340bca8ecaa.tar.gz
gcc-510c9192493b6af5c4c70b14390fe340bca8ecaa.tar.bz2
Enable sanitization for hash tables.
2019-06-07 Martin Liska <mliska@suse.cz> * cselib.c (cselib_init): Disable hash table sanitization. * hash-set.h: Pass new default argument to m_table. * hash-table.c: Add global variable with hash table sanitization limit. * hash-table.h (Allocator>::hash_table): Add new argument to ctor. (hashtab_chk_error): New. * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New. * toplev.c (process_options): Set hash_table_sanitize_eq_limit from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value. From-SVN: r272038
Diffstat (limited to 'gcc/hash-set.h')
-rw-r--r--gcc/hash-set.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/hash-set.h b/gcc/hash-set.h
index de3532f..d891ed7 100644
--- a/gcc/hash-set.h
+++ b/gcc/hash-set.h
@@ -28,7 +28,7 @@ class hash_set
public:
typedef typename Traits::value_type Key;
explicit hash_set (size_t n = 13, bool ggc = false CXX_MEM_STAT_INFO)
- : m_table (n, ggc, GATHER_STATISTICS, HASH_SET_ORIGIN PASS_MEM_STAT) {}
+ : m_table (n, ggc, true, GATHER_STATISTICS, HASH_SET_ORIGIN PASS_MEM_STAT) {}
/* Create a hash_set in gc memory with space for at least n elements. */