This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [gomp4.1] Handle new form of #pragma omp declare target
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Ilya Verbin <iverbin at gmail dot com>
- Cc: gcc-patches at gcc dot gnu dot org, Kirill Yukhin <kirill dot yukhin at gmail dot com>
- Date: Mon, 2 Nov 2015 19:01:28 +0100
- Subject: Re: [gomp4.1] Handle new form of #pragma omp declare target
- Authentication-results: sourceware.org; auth=none
- References: <20150717130559 dot GI1780 at tucnak dot redhat dot com> <20151027211103 dot GA9097 at msticlxl57 dot ims dot intel dot com> <20151030174407 dot GA22288 at msticlxl57 dot ims dot intel dot com> <20151030191225 dot GG478 at tucnak dot redhat dot com> <20151102165417 dot GA30423 at msticlxl57 dot ims dot intel dot com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Mon, Nov 02, 2015 at 07:54:17PM +0300, Ilya Verbin wrote:
> Here is the patch.
> make check RUNTESTFLAGS=gomp.exp and check-target-libgomp passed.
> OK for gomp-4_5-branch?
>
>
> gcc/c/
> * c-parser.c: Include context.h.
> (c_parser_omp_declare_target): If decl has "omp declare target" or
> "omp declare target link" attribute, and cgraph or varpool node already
> exists, then set corresponding flags.
> gcc/cp/
> * parser.c: Include context.h.
> (cp_parser_omp_declare_target): If decl has "omp declare target" or
> "omp declare target link" attribute, and cgraph or varpool node already
> exists, then set corresponding flags.
> libgomp/
> * testsuite/libgomp.c++/target-13.C: Add global variable with "omp
> declare target (<list>)" directive, use it in foo.
> * testsuite/libgomp.c/target-28.c: Likewise.
Yes, thanks.
Jakub