ipa-devirt.c (add_type_duplicate): Do not ICE on incomplete enums.
authorJan Hubicka <hubicka@ucw.cz>
Tue, 20 Nov 2018 18:06:03 +0000 (19:06 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Tue, 20 Nov 2018 18:06:03 +0000 (18:06 +0000)
commit012b51cf21538e0695cbcc6b725f1140655c86b7
tree98c92a2a0473ed1540cf5709e17d2b5aef56bcaf
parent5702bb9494497fb09aff5b7e52fb013723bfe423
ipa-devirt.c (add_type_duplicate): Do not ICE on incomplete enums.

* ipa-devirt.c (add_type_duplicate): Do not ICE on incomplete enums.
* tree.c (build_array_type_1): Forward declare.
(fld_type_variant_equal_p): Add INNER_TYPE parameter.
(fld_type_variant): Likewise.
(fld_simplified_types): New hash.
(fld_process_array_type): New function.
(fld_incomplete_type_of): Handle array and enumeration types.
(fld_simplified_type): Handle simplification of arrays.
(free_lang_data): Allocate and free simplified types hash.

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