Enable sanitization for hash tables.
authorMartin Liska <mliska@suse.cz>
Fri, 7 Jun 2019 12:13:13 +0000 (14:13 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Fri, 7 Jun 2019 12:13:13 +0000 (12:13 +0000)
commit510c9192493b6af5c4c70b14390fe340bca8ecaa
treec2e8bab0a5b755fef04328d8776654af5bc76f67
parent686a56a85d39750cd5c0c42f2ea747c8632e519e
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
gcc/ChangeLog
gcc/cselib.c
gcc/hash-set.h
gcc/hash-table.c
gcc/hash-table.h
gcc/params.def
gcc/toplev.c