diff mbox

Fix ICE building boost testsuite

Message ID 20150119204638.GD23365@kam.mff.cuni.cz
State New
Headers show

Commit Message

Jan Hubicka Jan. 19, 2015, 8:46 p.m. UTC

diff mbox

Patch

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 219858)
+++ ChangeLog	(working copy)
@@ -1,5 +1,11 @@ 
 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
 	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)