mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-01-25 19:04:52 +08:00
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. From-SVN: r224302
This commit is contained in:
parent
e677a9d463
commit
edafad14e1
@ -1,3 +1,8 @@
|
||||
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.
|
||||
|
||||
2015-06-09 Andrew MacLeod <amacleod@redhat.com>
|
||||
|
||||
* gcc-plugin.h: Move decls to plugin.h and include it.
|
||||
|
@ -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. */
|
||||
|
Loading…
Reference in New Issue
Block a user