ipa-devirt.c (odr_types_equivalent_p): Expect constants than const decls in TREE_VALU...
authorJan Hubicka <jh@suse.cz>
Wed, 7 Nov 2018 14:12:20 +0000 (15:12 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Wed, 7 Nov 2018 14:12:20 +0000 (14:12 +0000)
commit7d3a67d7b0c01c0370226db7840c9ef6e054b56c
tree675a9609516280881e63e2682b1801765bd6fe6d
parent667b3ec15d86a3d9c22a7469c4353cd9432b4c76
ipa-devirt.c (odr_types_equivalent_p): Expect constants than const decls in TREE_VALUE of enum.

* ipa-devirt.c (odr_types_equivalent_p): Expect constants
than const decls in TREE_VALUE of enum.
(dump_type_inheritance_graph): Improve duplicate dumping.
(free_enum_values): New.
(build_type_inheritance_graph): Use it.
* tree.c (free_lang_data_in_type): Free TYPE_VALUES of enums
which are not main variants or not ODR types.
(verify_type_variant): Expect variants to have no TYPE_VALUES.

From-SVN: r265875
gcc/ChangeLog
gcc/ipa-devirt.c
gcc/tree.c