From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4839 invoked by alias); 13 Oct 2015 09:32:26 -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 4778 invoked by uid 89); 13 Oct 2015 09:32:25 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 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 (AES256-GCM-SHA384 encrypted) ESMTPS; Tue, 13 Oct 2015 09:32:24 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (Postfix) with ESMTPS id D78BB36B1C9 for ; Tue, 13 Oct 2015 09:32:22 +0000 (UTC) Received: from tucnak.zalov.cz (ovpn-116-53.ams2.redhat.com [10.36.116.53]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t9D9WLc5000545 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Tue, 13 Oct 2015 05:32:22 -0400 Received: from tucnak.zalov.cz (localhost [127.0.0.1]) by tucnak.zalov.cz (8.15.2/8.15.2) with ESMTP id t9D9WKGP005580 for ; Tue, 13 Oct 2015 11:32:20 +0200 Received: (from jakub@localhost) by tucnak.zalov.cz (8.15.2/8.15.2/Submit) id t9D9WJkN004608 for gcc-patches@gcc.gnu.org; Tue, 13 Oct 2015 11:32:19 +0200 Date: Tue, 13 Oct 2015 09:32:00 -0000 From: Jakub Jelinek To: gcc-patches@gcc.gnu.org Subject: [gomp4.1] Fix up gimple_copy for GIMPLE_OMP_ORDERED clauses Message-ID: <20151013093219.GH478@tucnak.redhat.com> Reply-To: Jakub Jelinek MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) X-IsSubscribed: yes X-SW-Source: 2015-10/txt/msg01203.txt.bz2 Hi! We forgot to update gimple_copy when clauses were added to GIMPLE_OMP_ORDERED. Fixed thusly: 2015-10-13 Jakub Jelinek * gimple.c (gimple_copy): Unshare clauses on GIMPLE_OMP_ORDERED. --- gcc/gimple.c.jj 2015-10-13 09:39:21.000000000 +0200 +++ gcc/gimple.c 2015-10-13 11:25:54.086967126 +0200 @@ -1792,6 +1792,12 @@ gimple_copy (gimple *stmt) gimple_omp_critical_set_clauses (as_a (copy), t); goto copy_omp_body; + case GIMPLE_OMP_ORDERED: + t = unshare_expr (gimple_omp_ordered_clauses + (as_a (stmt))); + gimple_omp_ordered_set_clauses (as_a (copy), t); + goto copy_omp_body; + case GIMPLE_OMP_SECTIONS: t = unshare_expr (gimple_omp_sections_clauses (stmt)); gimple_omp_sections_set_clauses (copy, t); @@ -1805,7 +1811,6 @@ gimple_copy (gimple *stmt) case GIMPLE_OMP_SECTION: case GIMPLE_OMP_MASTER: case GIMPLE_OMP_TASKGROUP: - case GIMPLE_OMP_ORDERED: copy_omp_body: new_seq = gimple_seq_copy (gimple_omp_body (stmt)); gimple_omp_set_body (copy, new_seq); Jakub