* lto-cgraph.c (input_edge): Do not care about resolution decisions.
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 4 Jul 2010 22:22:48 +0000 (22:22 +0000)
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 4 Jul 2010 22:22:48 +0000 (22:22 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@161812 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/lto-cgraph.c

index 5a654ac..9567881 100644 (file)
@@ -1,5 +1,9 @@
 2010-07-04  Jan Hubicka  <jh@suse.cz>
 
+       * lto-cgraph.c (input_edge): Do not care about resolution decisions.
+
+2010-07-04  Jan Hubicka  <jh@suse.cz>
+
         * cgraphunit.c (init_cgraph): Only initialize dump file if it is not already
         initialized.
 
index 9722a80..1542797 100644 (file)
@@ -1158,7 +1158,6 @@ input_edge (struct lto_input_block *ib, VEC(cgraph_node_ptr, heap) *nodes,
   unsigned int nest;
   cgraph_inline_failed_t inline_failed;
   struct bitpack_d bp;
-  enum ld_plugin_symbol_resolution caller_resolution;
   int ecf_flags = 0;
 
   caller = VEC_index (cgraph_node_ptr, nodes, lto_input_sleb128 (ib));
@@ -1183,13 +1182,6 @@ input_edge (struct lto_input_block *ib, VEC(cgraph_node_ptr, heap) *nodes,
   freq = (int) bp_unpack_value (&bp, HOST_BITS_PER_INT);
   nest = (unsigned) bp_unpack_value (&bp, 30);
 
-  /* If the caller was preempted, don't create the edge.
-     ???  Should we ever have edges from a preempted caller?  */
-  caller_resolution = lto_symtab_get_resolution (caller->decl);
-  if (caller_resolution == LDPR_PREEMPTED_REG
-      || caller_resolution == LDPR_PREEMPTED_IR)
-    return;
-
   if (indirect)
     edge = cgraph_create_indirect_edge (caller, NULL, 0, count, freq, nest);
   else