From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 70581 invoked by alias); 18 Mar 2015 17:22:15 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 70527 invoked by uid 89); 18 Mar 2015 17:22:14 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 18 Mar 2015 17:22:13 +0000 Received: from nat-ies.mentorg.com ([192.94.31.2] helo=SVR-IES-FEM-02.mgc.mentorg.com) by relay1.mentorg.com with esmtp id 1YYHfV-0001ks-Qy from Tom_deVries@mentor.com ; Wed, 18 Mar 2015 10:22:10 -0700 Received: from [127.0.0.1] (137.202.0.76) by SVR-IES-FEM-02.mgc.mentorg.com (137.202.0.106) with Microsoft SMTP Server id 14.3.224.2; Wed, 18 Mar 2015 17:22:08 +0000 Message-ID: <5509B43E.802@mentor.com> Date: Wed, 18 Mar 2015 17:22:00 -0000 From: Tom de Vries User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: GCC Patches , Richard Biener Subject: [PATCH][3/3][PR65460] Mark offloaded functions as parallelized Content-Type: multipart/mixed; boundary="------------070909050008060806040805" X-SW-Source: 2015-03/txt/msg00966.txt.bz2 --------------070909050008060806040805 Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Content-length: 237 Hi, this patch fixes PR65460. The patch marks offloaded functions as parallelized, which means the parloops pass no longer attempts to modify that function. Bootstrapped and reg-tested on x86_64. OK for stage4 trunk? Thanks, - Tom --------------070909050008060806040805 Content-Type: text/x-patch; name="0003-Mark-offloaded-functions-as-parallelized.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="0003-Mark-offloaded-functions-as-parallelized.patch" Content-length: 682 Mark offloaded functions as parallelized 2015-03-18 Tom de Vries PR tree-optimization/65460 * omp-low.c (expand_omp_target): Call mark_parallelized_function 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 c5c0ccf..e7ceee2 100644 --- a/gcc/omp-low.c +++ b/gcc/omp-low.c @@ -8801,6 +8801,7 @@ expand_omp_target (struct omp_region *region) { child_fn = gimple_omp_target_child_fn (entry_stmt); child_cfun = DECL_STRUCT_FUNCTION (child_fn); + mark_parallelized_function (child_fn); } /* Supported by expand_omp_taskreg, but not here. */ -- 1.9.1 --------------070909050008060806040805--