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