* ipa-devirt.c (type_in_anonymous_namespace_p): Return true
commit2bfdc8e75a35e61c47b0f4bca0711c6ae6fce625
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 19 May 2015 21:02:06 +0000 (19 21:02 +0000)
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 19 May 2015 21:02:06 +0000 (19 21:02 +0000)
tree931fdcb291847f90f2d4c69e3f993bf2c4cd3d2e
parent9e73638f5a105b0d056ec7fcb4028eea12f99419
* ipa-devirt.c (type_in_anonymous_namespace_p): Return true
or implicit declarations.
(odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
into it.
(get_odr_type): Check type has linkage before adding bases.
(register_odr_type): Check that type has linkage before adding it.
(type_known_to_have_no_deriavations_p): Rename to ..
(type_known_to_have_no_derivations_p): This one.
* ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
(type_known_to_have_no_derivations_p): This one.
* ipa-polymorphic-call.c
(ipa_polymorphic_call_context::restrict_to_inner_type): Check that
type has linkage.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223415 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/ipa-devirt.c
gcc/ipa-polymorphic-call.c
gcc/ipa-utils.h