Mark offloaded functions as parallelized 2015-03-20 Tom de Vries PR tree-optimization/65460 * omp-low.c (expand_omp_target): Set parallelized_function on cgraph_node for child_fn. --- gcc/omp-low.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gcc/omp-low.c b/gcc/omp-low.c index 5ca9e84..9be39b7 100644 --- a/gcc/omp-low.c +++ b/gcc/omp-low.c @@ -8937,6 +8937,7 @@ 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::add_new_function (child_fn, true); + cgraph_node::get (child_fn)->parallelized_function = 1; #ifdef ENABLE_OFFLOADING /* Add the new function to the offload table. */ -- 1.9.1