summaryrefslogtreecommitdiff
path: root/gcc/omp-low.c
diff options
context:
space:
mode:
authorvries <vries@138bc75d-0d04-0410-961f-82ee72b054a4>2015-06-09 21:14:38 +0000
committervries <vries@138bc75d-0d04-0410-961f-82ee72b054a4>2015-06-09 21:14:38 +0000
commit47300487ecd323e956a854845fe1e1a95797755a (patch)
tree6bca344623cb2b7d7da4aeb154145d463ba8e29a /gcc/omp-low.c
parenta5cb93e37a12c2e5538fb77cfd3eae98fef777ca (diff)
downloadgcc-47300487ecd323e956a854845fe1e1a95797755a.tar.gz
Mark function parallelized_function before add_new_function
2015-06-09 Tom de Vries <tom@codesourcery.com> * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function parallelized_function before add_new_function. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@224302 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/omp-low.c')
-rw-r--r--gcc/omp-low.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/omp-low.c b/gcc/omp-low.c
index f322416b57f..2045e485dbb 100644
--- a/gcc/omp-low.c
+++ b/gcc/omp-low.c
@@ -1552,8 +1552,9 @@ finalize_task_copyfn (gomp_task *task_stmt)
pop_cfun ();
/* Inform the callgraph about the new function. */
+ cgraph_node *node = cgraph_node::get_create (child_fn);
+ node->parallelized_function = 1;
cgraph_node::add_new_function (child_fn, false);
- cgraph_node::get (child_fn)->parallelized_function = 1;
}
/* Destroy a omp_context data structures. Called through the splay tree
@@ -5589,8 +5590,9 @@ expand_omp_taskreg (struct omp_region *region)
/* Inform the callgraph about the new function. */
DECL_STRUCT_FUNCTION (child_fn)->curr_properties = cfun->curr_properties;
+ cgraph_node *node = cgraph_node::get_create (child_fn);
+ node->parallelized_function = 1;
cgraph_node::add_new_function (child_fn, true);
- cgraph_node::get (child_fn)->parallelized_function = 1;
/* Fix the callgraph edges for child_cfun. Those for cfun will be
fixed in a following pass. */