Fix hash_operand for fields of a CONSTRUCTOR.
2019-11-04 Martin Liska <mliska@suse.cz> PR ipa/92304 * fold-const.c (operand_compare::hash_operand): Fix field hashing of CONSTRUCTOR. From-SVN: r277768
This commit is contained in:
parent
ddf628e42f
commit
2323aa040b
2 changed files with 9 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
|||
2019-11-04 Martin Liska <mliska@suse.cz>
|
||||
|
||||
PR ipa/92304
|
||||
* fold-const.c (operand_compare::hash_operand): Fix field
|
||||
hashing of CONSTRUCTOR.
|
||||
|
||||
2019-11-04 Martin Liska <mliska@suse.cz>
|
||||
|
||||
* ggc.h (ggc_delete): New function.
|
||||
|
|
|
@ -3659,6 +3659,9 @@ operand_compare::hash_operand (const_tree t, inchash::hash &hstate,
|
|||
flags &= ~OEP_ADDRESS_OF;
|
||||
FOR_EACH_CONSTRUCTOR_ELT (CONSTRUCTOR_ELTS (t), idx, field, value)
|
||||
{
|
||||
/* In GIMPLE the indexes can be either NULL or matching i. */
|
||||
if (field == NULL_TREE)
|
||||
field = bitsize_int (idx);
|
||||
hash_operand (field, hstate, flags);
|
||||
hash_operand (value, hstate, flags);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue