diff options
author | Martin Liska <mliska@suse.cz> | 2019-06-07 14:13:13 +0200 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2019-06-07 12:13:13 +0000 |
commit | 510c9192493b6af5c4c70b14390fe340bca8ecaa (patch) | |
tree | c2e8bab0a5b755fef04328d8776654af5bc76f67 /gcc/params.def | |
parent | 686a56a85d39750cd5c0c42f2ea747c8632e519e (diff) | |
download | gcc-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/params.def')
-rw-r--r-- | gcc/params.def | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/params.def b/gcc/params.def index b4a4e4a..0db6095 100644 --- a/gcc/params.def +++ b/gcc/params.def @@ -1431,6 +1431,12 @@ DEFPARAM(PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD, " The parameter is used only in GIMPLE FE.", 0, 0, 0) +DEFPARAM(PARAM_HASH_TABLE_VERIFICATION_LIMIT, + "hash-table-verification-limit", + "The number of elements for which hash table verification is done for " + "each searched element.", + 100, 0, 0) + /* Local variables: |