re PR tree-optimization/62091 (ice in before_dom_children)
authorJan Hubicka <hubicka@ucw.cz>
Thu, 21 Aug 2014 13:49:07 +0000 (15:49 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Thu, 21 Aug 2014 13:49:07 +0000 (13:49 +0000)
commita336b719a34c07effb7e1ba9e72f8c270ea362ee
tree28584c8124114195615453c501e911bdccec1199
parent2903befbec9fb56ce7883952bf040daa80041ae8
re PR tree-optimization/62091 (ice in before_dom_children)

PR tree-optimization/62091
* g++.dg/ipa/devirt-37.C: Update template.
* g++.dg/ipa/devirt-40.C: New testcase.
* ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
handle correctly arrays.
(extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
inheritance binfos.
(record_known_type): Walk into inner type.
(ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
condition on no type changes.

From-SVN: r214271
gcc/ChangeLog
gcc/ipa-devirt.c
gcc/lto/lto.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ipa/devirt-37.C
gcc/testsuite/g++.dg/ipa/devirt-40.C [new file with mode: 0644]