From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10069 invoked by alias); 10 Mar 2015 16:53:05 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 10056 invoked by uid 89); 10 Mar 2015 16:53:04 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.5 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,KAM_FROM_URIBL_PCCC,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2 X-HELO: mail-wi0-f176.google.com Received: from mail-wi0-f176.google.com (HELO mail-wi0-f176.google.com) (209.85.212.176) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Tue, 10 Mar 2015 16:53:03 +0000 Received: by widex7 with SMTP id ex7so31155994wid.3 for ; Tue, 10 Mar 2015 09:53:00 -0700 (PDT) X-Received: by 10.194.241.202 with SMTP id wk10mr44473688wjc.145.1426006380671; Tue, 10 Mar 2015 09:53:00 -0700 (PDT) Received: from msticlxl57.ims.intel.com (fmdmzpr02-ext.fm.intel.com. [192.55.55.37]) by mx.google.com with ESMTPSA id uo6sm1615569wjc.49.2015.03.10.09.52.57 (version=TLSv1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 10 Mar 2015 09:53:00 -0700 (PDT) Date: Tue, 10 Mar 2015 16:53:00 -0000 From: Ilya Verbin To: Jakub Jelinek Cc: gcc@gcc.gnu.org, Kirill Yukhin Subject: Re: [gomp4] Questions about "declare target" and "target update" pragmas Message-ID: <20150310165252.GC37666@msticlxl57.ims.intel.com> References: <20140122155151.GA50489@msticlxl57.ims.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140122155151.GA50489@msticlxl57.ims.intel.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes X-SW-Source: 2015-03/txt/msg00094.txt.bz2 Hi Jakub, I have one more question :) This testcase seems to be correct... or not? #pragma omp declare target extern int G; #pragma omp end declare target int G; int main () { #pragma omp target update to(G) return 0; } If yes, then we have a problem that the decl of G in varpool_node::get_create doesn't have "omp declare target" attribute. Thanks, -- Ilya