OSDN Git Service

* ipa-prop.c (ipa_prop_read_section): Add sanity check that node is analyzed.
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 15 May 2010 20:48:58 +0000 (20:48 +0000)
committerMasaki Muranaka <monaka@monami-software.com>
Sun, 23 May 2010 05:09:35 +0000 (14:09 +0900)
* passes.c (ipa_write_summaries): Write all analyzed nodes.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159444 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/ipa-prop.c
gcc/passes.c

index fbd970e..e294679 100644 (file)
@@ -1,3 +1,8 @@
+2010-05-15  Jan Hubicka  <jh@suse.cz>
+
+       * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is analyzed.
+       * passes.c (ipa_write_summaries): Write all analyzed nodes.
+
 2010-05-15  Steven Bosscher  <steven@gcc.gnu.org>
 
        * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
index d40fe44..3f80df0 100644 (file)
@@ -2140,6 +2140,7 @@ ipa_prop_read_section (struct lto_file_decl_data *file_data, const char *data,
       index = lto_input_uleb128 (&ib_main);
       encoder = file_data->cgraph_node_encoder;
       node = lto_cgraph_encoder_deref (encoder, index);
+      gcc_assert (node->analyzed);
       ipa_read_node_info (&ib_main, node, data_in);
     }
   lto_free_section_data (file_data, LTO_section_jump_functions, NULL, data,
index 85bd33b..4767c59 100644 (file)
@@ -1748,7 +1748,7 @@ ipa_write_summaries (void)
          renumber_gimple_stmt_uids ();
          pop_cfun ();
        }
-      if (node->needed || node->reachable || node->address_taken)
+      if (node->analyzed)
        cgraph_node_set_add (set, node);
     }
   vset = varpool_node_set_new ();