Index: ChangeLog =================================================================== --- ChangeLog (revision 219858) +++ ChangeLog (working copy) @@ -1,5 +1,11 @@ 2015-01-19 Jan Hubicka <hubi...@ucw.cz> + PR ipa/64218 + * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check + whether function is an alias. + +2015-01-19 Jan Hubicka <hubi...@ucw.cz> + * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless cases. Index: ipa-inline.c =================================================================== --- ipa-inline.c (revision 219826) +++ ipa-inline.c (working copy) @@ -866,7 +866,8 @@ want_inline_function_to_all_callers_p (s { bool has_hot_call = false; - if (node->ultimate_alias_target () != node) + /* Aliases gets inlined along with the function they alias. */ + if (node->alias) return false; /* Already inlined? */ if (node->global.inlined_to)