From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21021 invoked by alias); 21 Mar 2015 22:23:21 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 20973 invoked by uid 55); 21 Mar 2015 22:23:15 -0000 From: "vries at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/65458] parloops transforms omp-thread functions Date: Sun, 22 Mar 2015 08:53:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: openmp X-Bugzilla-Severity: minor X-Bugzilla-Who: vries at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: vries at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-03/txt/msg02235.txt.bz2 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 backport from trunk: 2015-03-21 Tom de Vries 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