summaryrefslogtreecommitdiff
path: root/gcc/ipa-utils.h
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2014-09-26 12:37:44 +0200
committerMartin Liska <marxin@gcc.gnu.org>2014-09-26 10:37:44 +0000
commitbf898b300eea2cd87a1afcadd886c7ae3d593091 (patch)
tree826243916bb4f3470111118df833648f93566f57 /gcc/ipa-utils.h
parent5535b7d6f3ff58a69b2bf52e7fe8772e2797f112 (diff)
downloadgcc-bf898b300eea2cd87a1afcadd886c7ae3d593091.tar.gz
cgraph.c (cgraph_node::release_body): New argument keep_arguments introduced.
* cgraph.c (cgraph_node::release_body): New argument keep_arguments introduced. * cgraph.h: Likewise. * cgraphunit.c (cgraph_node::create_wrapper): Usage of new argument introduced. * ipa-utils.h (polymorphic_type_binfo_p): Safe check for binfos created by Java. * tree-ssa-alias.c (ao_ref_base_alias_set): Static function transformed to global. * tree-ssa-alias.h: Likewise. From-SVN: r215640
Diffstat (limited to 'gcc/ipa-utils.h')
-rw-r--r--gcc/ipa-utils.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/ipa-utils.h b/gcc/ipa-utils.h
index 029f39a0462..465bc267f3c 100644
--- a/gcc/ipa-utils.h
+++ b/gcc/ipa-utils.h
@@ -179,8 +179,10 @@ odr_type_p (const_tree t)
inline bool
polymorphic_type_binfo_p (const_tree binfo)
{
- /* See if BINFO's type has an virtual table associtated with it. */
- return BINFO_VTABLE (TYPE_BINFO (BINFO_TYPE (binfo)));
+ /* See if BINFO's type has an virtual table associtated with it.
+ Check is defensive because of Java FE produces BINFOs
+ without BINFO_TYPE set. */
+ return BINFO_TYPE (binfo) && BINFO_VTABLE (TYPE_BINFO (BINFO_TYPE (binfo)));
}
#endif /* GCC_IPA_UTILS_H */