OSDN Git Service

* ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 18 May 2010 22:37:32 +0000 (22:37 +0000)
committerMasaki Muranaka <monaka@monami-software.com>
Sun, 23 May 2010 05:11:40 +0000 (14:11 +0900)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159546 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/ipa-reference.c

index 631e7a4..d6692f4 100644 (file)
@@ -1,3 +1,7 @@
+2010-05-18  Jan Hubicka  <jh@suse.cz>
+
+       * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
+
 2010-05-18  Vladimir Makarov  <vmakarov@redhat.com>
 
        PR rtl-optimization/43332
index 0b04a66..a66e627 100644 (file)
@@ -835,13 +835,15 @@ propagate (void)
     }
 
   /* Cleanup. */
-  for (i = 0; i < order_pos; i++ )
+  for (node = cgraph_nodes; node; node = node->next)
     {
       ipa_reference_vars_info_t node_info;
       ipa_reference_global_vars_info_t node_g;
       ipa_reference_optimization_summary_t opt;
 
-      node = order[i];
+      if (!node->analyzed)
+        continue;
+
       node_info = get_reference_vars_info (node);
       if (cgraph_function_body_availability (node) > AVAIL_OVERWRITABLE)
        {