From: Tom de Vries Date: Tue, 9 Jun 2015 21:14:46 +0000 (+0000) Subject: Mark offloaded functions as parallelized X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c2f576912212bcd7f791472ddb285b127797a163;p=gcc.git Mark offloaded functions as parallelized 2015-06-09 Tom de Vries PR tree-optimization/65460 * omp-low.c (expand_omp_target): Set parallelized_function on cgraph_node for child_fn. From-SVN: r224303 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8709621f109..d9d299dcc4c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2015-06-09 Tom de Vries + + PR tree-optimization/65460 + * omp-low.c (expand_omp_target): Set parallelized_function on + cgraph_node for child_fn. + 2015-06-09 Tom de Vries * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function diff --git a/gcc/omp-low.c b/gcc/omp-low.c index 2045e485dbb..77716bf6c20 100644 --- a/gcc/omp-low.c +++ b/gcc/omp-low.c @@ -8959,6 +8959,8 @@ expand_omp_target (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); #ifdef ENABLE_OFFLOADING