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
This commit is contained in:
parent
6dc8ee419e
commit
2e71b5714d
2 changed files with 10 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
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)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue