From patchwork Thu Jun 29 09:49:34 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jakub Jelinek X-Patchwork-Id: 782131 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3wyvyn27Qcz9s75 for ; Thu, 29 Jun 2017 19:49:52 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="JBpATYGL"; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:subject:message-id:reply-to:mime-version:content-type; q=dns; s=default; b=Hf5Nt4Qkw3j6uox0aeS/Spq+9ZCxKKI5bwXwen1GTLv YZA/9bVKw1TOO6lyd9tvj0fjMnEG3RUpKR4yUN+4lQx/V5ISd6JZsaGUQepc7qTc tRq7r48Dm8F7Ip6J2/jAIEMvOYV1pR1gD53XLRG9baNtKs6yInd9rtlfWYR589CU = DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:subject:message-id:reply-to:mime-version:content-type; s=default; bh=sFjNE5Lpu+LE0WQuOJibc6uiN04=; b=JBpATYGLJTHj0lknW aaBNTjQbh23jOU6a1Gb+jorlp7HwyOAt8GscSL6KXdzTJuFaThIY1f7KpekEImrs jYRDLfFoSeKjUz8S+HOV+Sz1Mea9ZvL5kyGSepWh53vcR/GEqXxb5dboDufyePYD LwPC6Ara1vLJfPIABRkUMPVHG0= Received: (qmail 16750 invoked by alias); 29 Jun 2017 09:49:41 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 16303 invoked by uid 89); 29 Jun 2017 09:49:40 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-11.9 required=5.0 tests=BAYES_00, GIT_PATCH_2, GIT_PATCH_3, RP_MATCHES_RCVD, SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:997 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 29 Jun 2017 09:49:39 +0000 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id B2BEEC1F81 for ; Thu, 29 Jun 2017 09:49:37 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com B2BEEC1F81 Authentication-Results: ext-mx02.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx02.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=jakub@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com B2BEEC1F81 Received: from tucnak.zalov.cz (ovpn-116-143.ams2.redhat.com [10.36.116.143]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 581A578996 for ; Thu, 29 Jun 2017 09:49:37 +0000 (UTC) Received: from tucnak.zalov.cz (localhost [127.0.0.1]) by tucnak.zalov.cz (8.15.2/8.15.2) with ESMTP id v5T9nZAp007932 for ; Thu, 29 Jun 2017 11:49:35 +0200 Received: (from jakub@localhost) by tucnak.zalov.cz (8.15.2/8.15.2/Submit) id v5T9nYxL007931 for gcc-patches@gcc.gnu.org; Thu, 29 Jun 2017 11:49:34 +0200 Date: Thu, 29 Jun 2017 11:49:34 +0200 From: Jakub Jelinek To: gcc-patches@gcc.gnu.org Subject: [gomp5] Fix taskgroup genericization in Fortran FE Message-ID: <20170629094934.GA2123@tucnak> Reply-To: Jakub Jelinek MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.7.1 (2016-10-04) X-IsSubscribed: yes Hi! Apparently I forgot to test fortran last time during the http://gcc.gnu.org/ml/gcc-patches/2017-06/msg00839.html changes. Fixed thusly, committed to gomp-5_0-branch. 2017-06-29 Jakub Jelinek * trans-openmp.c (gfc_trans_omp_taskgroup): Build OMP_TASKGROUP using make_node instead of build1_loc. Jakub --- gcc/fortran/trans-openmp.c.jj 2017-05-24 11:47:41.000000000 +0200 +++ gcc/fortran/trans-openmp.c 2017-06-29 11:43:00.620323982 +0200 @@ -4546,8 +4546,12 @@ gfc_trans_omp_task (gfc_code *code) static tree gfc_trans_omp_taskgroup (gfc_code *code) { - tree stmt = gfc_trans_code (code->block->next); - return build1_loc (input_location, OMP_TASKGROUP, void_type_node, stmt); + tree body = gfc_trans_code (code->block->next); + tree stmt = make_node (OMP_TASKGROUP); + TREE_TYPE (stmt) = void_type_node; + OMP_TASKGROUP_BODY (stmt) = body; + OMP_TASKGROUP_CLAUSES (stmt) = NULL_TREE; + return stmt; } static tree