Patchwork PR middle-end/58125

login
register
mail settings
Submitter Jan Hubicka
Date Jan. 17, 2014, 9:15 p.m.
Message ID <20140117211525.GA5056@kam.mff.cuni.cz>
Download mbox | patch
Permalink /patch/312208/
State New
Headers show

Comments

Jan Hubicka - Jan. 17, 2014, 9:15 p.m.
Hi,
this patch fixes no longer reproducing ICE where we try to free summary of alias
but we never allocate one.

Bootstrapped/regtested x86_64-linux, comitted.

Patch

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 206732)
+++ ChangeLog	(working copy)
@@ -1,3 +1,9 @@ 
+2014-01-17  Jan Hubicka  <jh@suse.cz>
+
+	PR middle-end/58125
+	* ipa-inline-analysis.c (inline_free_summary):
+	Do not free summary of aliases.
+
 2014-01-17  Jakub Jelinek  <jakub@redhat.com>
 
 	PR middle-end/59706
Index: ipa-inline-analysis.c
===================================================================
--- ipa-inline-analysis.c	(revision 206684)
+++ ipa-inline-analysis.c	(working copy)
@@ -4146,7 +4146,8 @@ 
   if (!inline_edge_summary_vec.exists ())
     return;
   FOR_EACH_DEFINED_FUNCTION (node)
-    reset_inline_summary (node);
+    if (!node->alias)
+      reset_inline_summary (node);
   if (function_insertion_hook_holder)
     cgraph_remove_function_insertion_hook (function_insertion_hook_holder);
   function_insertion_hook_holder = NULL;