]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR ipa/64218 (ICE: Segmentation fault (symtab_node::get_alias_target()) running...
authorJan Hubicka <hubicka@ucw.cz>
Mon, 19 Jan 2015 20:46:15 +0000 (21:46 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Mon, 19 Jan 2015 20:46:15 +0000 (20:46 +0000)
PR ipa/64218
* ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
whether function is an alias.

From-SVN: r219859

gcc/ChangeLog
gcc/ipa-inline.c

index 25c3bc1b2e596c42427c29f82f9bedbad4b2f4a4..ea61db20226a3c8f051eda585300d66311398c4f 100644 (file)
@@ -1,3 +1,9 @@
+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
index f270cfa58f3ad969b4d74560971fbe195656f3b6..6bfb1ea2aa48c8f29623ecdb8d2b97c0d2fb9277 100644 (file)
@@ -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)