From: Jan Hubicka Date: Mon, 19 Jan 2015 20:46:15 +0000 (+0100) Subject: re PR ipa/64218 (ICE: Segmentation fault (symtab_node::get_alias_target()) running... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9789b553b4c1248b56ec41f2bda47c6bb9785f2b;p=gcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 25c3bc1b2e5..ea61db20226 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2015-01-19 Jan Hubicka + + 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 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless diff --git a/gcc/ipa-inline.c b/gcc/ipa-inline.c index f270cfa58f3..6bfb1ea2aa4 100644 --- a/gcc/ipa-inline.c +++ b/gcc/ipa-inline.c @@ -866,7 +866,8 @@ want_inline_function_to_all_callers_p (struct cgraph_node *node, bool cold) { 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)