Commit 9789b553 by Jan Hubicka Committed by Jan Hubicka

re PR ipa/64218 (ICE: Segmentation fault (symtab_node::get_alias_target()) running Boost testsuite)


	PR ipa/64218
	* ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
	whether function is an alias.

From-SVN: r219859
parent 68c9467f
2015-01-19 Jan Hubicka <hubicka@ucw.cz> 2015-01-19 Jan Hubicka <hubicka@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 <hubicka@ucw.cz>
* ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
cases. cases.
......
...@@ -866,7 +866,8 @@ want_inline_function_to_all_callers_p (struct cgraph_node *node, bool cold) ...@@ -866,7 +866,8 @@ want_inline_function_to_all_callers_p (struct cgraph_node *node, bool cold)
{ {
bool has_hot_call = false; 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; return false;
/* Already inlined? */ /* Already inlined? */
if (node->global.inlined_to) if (node->global.inlined_to)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment