ipa-devirt.c (type_in_anonymous_namespace_p): Return true or implicit declarations.
authorJan Hubicka <hubicka@ucw.cz>
Tue, 19 May 2015 21:02:06 +0000 (23:02 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Tue, 19 May 2015 21:02:06 +0000 (21:02 +0000)
commit4d6eb35a6dbe6c9808779ca446667f8a8374a11b
tree931fdcb291847f90f2d4c69e3f993bf2c4cd3d2e
parent296a8c2f54dd8bf2f84c687db8329f179774220e
ipa-devirt.c (type_in_anonymous_namespace_p): Return true or implicit declarations.

* 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.

From-SVN: r223415
gcc/ChangeLog
gcc/ipa-devirt.c
gcc/ipa-polymorphic-call.c
gcc/ipa-utils.h