https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65458
--- Comment #6 from vries at gcc dot gnu.org --- Author: vries Date: Sat Mar 21 22:22:44 2015 New Revision: 221561 URL: https://gcc.gnu.org/viewcvs?rev=221561&root=gcc&view=rev Log: Mark omp thread functions as parallelized 2015-03-21 Tom de Vries <t...@codesourcery.com> backport from trunk: 2015-03-21 Tom de Vries <t...@codesourcery.com> PR tree-optimization/65458 * cgraph.c (cgraph_node::dump): Handle parallelized_function field. * cgraph.h (cgraph_node): Add parallelized_function field. * lto-cgraph.c (lto_output_node): Write parallelized_function field. (input_overwrite_node): Read parallelized_function field. * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set parallelized_function on cgraph_node for child_fn. * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h. Remove include of gt-tree-parloops.h. (parallelized_functions): Remove static variable. (parallelized_function_p): Rewrite using parallelized_function field of cgraph_node. (create_loop_fn): Remove adding to parallelized_functions. * Makefile.in (GTFILES): Remove tree-parloops.c Modified: branches/gomp-4_0-branch/gcc/ChangeLog branches/gomp-4_0-branch/gcc/Makefile.in branches/gomp-4_0-branch/gcc/cgraph.c branches/gomp-4_0-branch/gcc/cgraph.h branches/gomp-4_0-branch/gcc/lto-cgraph.c branches/gomp-4_0-branch/gcc/omp-low.c branches/gomp-4_0-branch/gcc/tree-parloops.c