Commit 2e71b571 by Martin Liska Committed by Martin Liska

Fix hash-table violation in trans-decl.c.

2018-10-31  Martin Liska  <mliska@suse.cz>

	* trans-decl.c (struct module_hasher): Call htab_hash_string
	for s->name and not for s.

From-SVN: r265663
parent 6dc8ee41
2018-10-31 Martin Liska <mliska@suse.cz>
* trans-decl.c (struct module_hasher): Call htab_hash_string
for s->name and not for s.
2018-10-30 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/85896
......
......@@ -4825,7 +4825,11 @@ struct module_hasher : ggc_ptr_hash<module_htab_entry>
{
typedef const char *compare_type;
static hashval_t hash (module_htab_entry *s) { return htab_hash_string (s); }
static hashval_t hash (module_htab_entry *s)
{
return htab_hash_string (s->name);
}
static bool
equal (module_htab_entry *a, const char *b)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment