From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 127244 invoked by alias); 3 Apr 2015 13:36:33 -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 127231 invoked by uid 89); 3 Apr 2015 13:36:33 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_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; Fri, 03 Apr 2015 13:36:32 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id t33DaUaQ003924 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 3 Apr 2015 09:36:31 -0400 Received: from tucnak.zalov.cz (ovpn-116-58.ams2.redhat.com [10.36.116.58]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t33DaT1s019020 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Fri, 3 Apr 2015 09:36:30 -0400 Received: from tucnak.zalov.cz (localhost [127.0.0.1]) by tucnak.zalov.cz (8.14.9/8.14.9) with ESMTP id t33DaRRO010528; Fri, 3 Apr 2015 15:36:27 +0200 Received: (from jakub@localhost) by tucnak.zalov.cz (8.14.9/8.14.9/Submit) id t33DaPam010479; Fri, 3 Apr 2015 15:36:25 +0200 Date: Fri, 03 Apr 2015 13:36:00 -0000 From: Jakub Jelinek To: Ilya Verbin Cc: Jan Hubicka , Jason Merrill , gcc-patches@gcc.gnu.org, rguenther@suse.de Subject: Re: Silence merge warnings on artificial types Message-ID: <20150403133625.GV19273@tucnak.redhat.com> Reply-To: Jakub Jelinek References: <20150330030257.GA71352@kam.mff.cuni.cz> <20150330153641.GA64930@msticlxl57.ims.intel.com> <20150330170639.GD93920@kam.mff.cuni.cz> <20150330172102.GI1746@tucnak.redhat.com> <20150330172321.GE14471@atrey.karlin.mff.cuni.cz> <55198D94.5020707@redhat.com> <20150331075121.GB62830@kam.mff.cuni.cz> <20150402182303.GA52553@msticlxl57.ims.intel.com> <20150402190553.GT19273@tucnak.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150402190553.GT19273@tucnak.redhat.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-IsSubscribed: yes X-SW-Source: 2015-04/txt/msg00120.txt.bz2 On Thu, Apr 02, 2015 at 09:05:53PM +0200, Jakub Jelinek wrote: > On Thu, Apr 02, 2015 at 09:23:03PM +0300, Ilya Verbin wrote: > > Hmm, libgomp.c++/target-3.C still fails. > > Here is what I see in need_assembler_name_p: > > Guess we should make the .omp_data_s.* types TYPE_ARTIFICIAL too. > Will take care of that tomorrow. Tested on x86_64-linux, committed to trunk. 2015-04-03 Jakub Jelinek * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set TYPE_ARTIFICIAL on the .omp_data* types. --- gcc/omp-low.c.jj 2015-03-23 08:47:51.000000000 +0100 +++ gcc/omp-low.c 2015-04-02 22:06:30.547850197 +0200 @@ -2351,6 +2351,7 @@ scan_omp_parallel (gimple_stmt_iterator DECL_ARTIFICIAL (name) = 1; DECL_NAMELESS (name) = 1; TYPE_NAME (ctx->record_type) = name; + TYPE_ARTIFICIAL (ctx->record_type) = 1; create_omp_child_function (ctx, false); gimple_omp_parallel_set_child_fn (stmt, ctx->cb.dst_fn); @@ -2391,6 +2392,7 @@ scan_omp_task (gimple_stmt_iterator *gsi DECL_ARTIFICIAL (name) = 1; DECL_NAMELESS (name) = 1; TYPE_NAME (ctx->record_type) = name; + TYPE_ARTIFICIAL (ctx->record_type) = 1; create_omp_child_function (ctx, false); gimple_omp_task_set_child_fn (stmt, ctx->cb.dst_fn); @@ -2404,6 +2406,7 @@ scan_omp_task (gimple_stmt_iterator *gsi DECL_ARTIFICIAL (name) = 1; DECL_NAMELESS (name) = 1; TYPE_NAME (ctx->srecord_type) = name; + TYPE_ARTIFICIAL (ctx->srecord_type) = 1; create_omp_child_function (ctx, true); } @@ -2671,6 +2674,7 @@ scan_omp_target (gomp_target *stmt, omp_ DECL_ARTIFICIAL (name) = 1; DECL_NAMELESS (name) = 1; TYPE_NAME (ctx->record_type) = name; + TYPE_ARTIFICIAL (ctx->record_type) = 1; if (offloaded) { if (is_gimple_omp_oacc (stmt)) Jakub