OSDN Git Service

* cgraphbuild.c (build_cgraph_edges): Use ipa-reference to represent OMP.
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 26 Oct 2010 22:32:47 +0000 (22:32 +0000)
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 26 Oct 2010 22:32:47 +0000 (22:32 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165989 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/cgraphbuild.c

index 15bb3fb..152c279 100644 (file)
@@ -1,5 +1,9 @@
 2010-10-26  Jan Hubicka  <jh@suse.cz>
 
+       * cgraphbuild.c (build_cgraph_edges): Use ipa-reference to represent OMP.
+
+2010-10-26  Jan Hubicka  <jh@suse.cz>
+
        * ipa.c (process_references): Enqueue all referenced nodes;
        mark as reachable only non-external nodes.
        (cgraph_remove_unreachable_nodes): All referenced nodes should
index 3bd42e3..3800f13 100644 (file)
@@ -361,16 +361,19 @@ build_cgraph_edges (void)
              && gimple_omp_parallel_child_fn (stmt))
            {
              tree fn = gimple_omp_parallel_child_fn (stmt);
-             cgraph_mark_needed_node (cgraph_node (fn));
+             ipa_record_reference (node, NULL, cgraph_node (fn),
+                                   NULL, IPA_REF_ADDR, stmt);
            }
          if (gimple_code (stmt) == GIMPLE_OMP_TASK)
            {
              tree fn = gimple_omp_task_child_fn (stmt);
              if (fn)
-               cgraph_mark_needed_node (cgraph_node (fn));
+               ipa_record_reference (node, NULL, cgraph_node (fn),
+                                     NULL, IPA_REF_ADDR, stmt);
              fn = gimple_omp_task_copy_fn (stmt);
              if (fn)
-               cgraph_mark_needed_node (cgraph_node (fn));
+               ipa_record_reference (node, NULL, cgraph_node (fn),
+                                     NULL, IPA_REF_ADDR, stmt);
            }
        }
       for (gsi = gsi_start (phi_nodes (bb)); !gsi_end_p (gsi); gsi_next (&gsi))