diff options
author | Jan Hubicka <jh@suse.cz> | 2010-10-27 00:32:47 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2010-10-26 22:32:47 +0000 |
commit | 8c3800373fa39db275e4bea68fa775a0defb3daf (patch) | |
tree | d2cf804140a9f25211f1f721ee249ef2535bac39 /gcc | |
parent | d5fae4575b268d141fe47da1f16e8b550917e4f0 (diff) | |
download | gcc-8c3800373fa39db275e4bea68fa775a0defb3daf.zip gcc-8c3800373fa39db275e4bea68fa775a0defb3daf.tar.gz gcc-8c3800373fa39db275e4bea68fa775a0defb3daf.tar.bz2 |
* cgraphbuild.c (build_cgraph_edges): Use ipa-reference to represent OMP.
From-SVN: r165989
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/cgraphbuild.c | 9 |
2 files changed, 10 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 15bb3fb..152c279 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/cgraphbuild.c b/gcc/cgraphbuild.c index 3bd42e3..3800f13 100644 --- a/gcc/cgraphbuild.c +++ b/gcc/cgraphbuild.c @@ -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)) |