From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7008 invoked by alias); 27 Mar 2014 16:17:10 -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 6995 invoked by uid 89); 27 Mar 2014 16:17:10 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.7 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS 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 ESMTP; Thu, 27 Mar 2014 16:16:59 +0000 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s2RGGvYN006406 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 27 Mar 2014 12:16:57 -0400 Received: from tucnak.zalov.cz (ovpn-116-51.ams2.redhat.com [10.36.116.51]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s2RGGt3P030812 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 27 Mar 2014 12:16:56 -0400 Received: from tucnak.zalov.cz (localhost [127.0.0.1]) by tucnak.zalov.cz (8.14.8/8.14.7) with ESMTP id s2RGGrT0010430; Thu, 27 Mar 2014 17:16:53 +0100 Received: (from jakub@localhost) by tucnak.zalov.cz (8.14.8/8.14.8/Submit) id s2RGGpXg010429; Thu, 27 Mar 2014 17:16:51 +0100 Date: Thu, 27 Mar 2014 16:23:00 -0000 From: Jakub Jelinek To: Ilya Verbin Cc: Bernd Schmidt , GCC Patches , Michael Zolotukhin Subject: Re: [gomp4] Add tables generation Message-ID: <20140327161651.GC1817@tucnak.redhat.com> Reply-To: Jakub Jelinek References: <532B1C45.9020308@codesourcery.com> <20140327133129.GA1618@msticlxl57.ims.intel.com> <20140327140218.GZ1817@tucnak.redhat.com> <20140327161300.GA18191@msticlxl57.ims.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140327161300.GA18191@msticlxl57.ims.intel.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes X-SW-Source: 2014-03/txt/msg01528.txt.bz2 On Thu, Mar 27, 2014 at 08:13:00PM +0400, Ilya Verbin wrote: > On 27 Mar 15:02, Jakub Jelinek wrote: > > The tables need to be created before IPA, that way it really shouldn't > > matter in what order you emit them. E.g. the outlined target functions > > could be added to the table during ompexp pass which actually creates the > > outlined functions, the vars need to be added before target lto or host lto > > is streamed. > > For host tables it's ok, but when target compiler will create tables with functions? > It reads bytecode from target_lto sections, so it never executes ompexp pass. Which is why the table created for host by the ompexp pass should be streamed into the target_lto sections (marked specially somehow, special attribute or whatever), and then corresponding target table created from that, rather then created from some possibly different ordering there. Jakub