Skip to content
This repository has been archived by the owner on Jul 3, 2018. It is now read-only.

Commit

Permalink
Mark function parallelized_function before add_new_function
Browse files Browse the repository at this point in the history
2015-06-09  Tom de Vries  <[email protected]>

	* 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
  • Loading branch information
vries committed Jun 9, 2015
1 parent a5cb93e commit 4730048
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions gcc/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2015-06-09 Tom de Vries <[email protected]>

* omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
parallelized_function before add_new_function.

2015-06-09 Andrew MacLeod <[email protected]>

* gcc-plugin.h: Move decls to plugin.h and include it.
Expand Down
6 changes: 4 additions & 2 deletions gcc/omp-low.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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. */
Expand Down

0 comments on commit 4730048

Please sign in to comment.