Fix operand_equal_p hash and copare of ODR_TYPE_REF
authorJan Hubicka <jh@suse.cz>
Thu, 19 Nov 2020 09:16:11 +0000 (10:16 +0100)
committerJan Hubicka <jh@suse.cz>
Thu, 19 Nov 2020 12:08:29 +0000 (13:08 +0100)
commitd8cf89767492a41b0f76e0aa302dddee4e1b3434
tree89170ad025fdac02e5267f0138e530a915d8c08f
parent27842e2a1eb26a7eae80b8efd98fb8c8bd74a68e
Fix operand_equal_p hash and copare of ODR_TYPE_REF

* fold-const.c (operand_compare::operand_equal_p): More OBJ_TYPE_REF
matching to correct place; drop OEP_ADDRESS_OF for TOKEN, OBJECT and
class.
(operand_compare::hash_operand): Hash ODR type for OBJ_TYPE_REF.
gcc/fold-const.c