c-decl.c (c_decl_attributes): Also add "omp declare target" attribute for DECL_EXTERN...
authorJakub Jelinek <jakub@redhat.com>
Thu, 19 Mar 2015 19:12:43 +0000 (20:12 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 19 Mar 2015 19:12:43 +0000 (20:12 +0100)
commit9b65e171edf31cd83fd075f6ed4f3943ebecc505
treef0b46bd92e908bd774e4726f1c69ec6676f54ea5
parent257291fc895a29a88d3d68719e580edcddd9a280
c-decl.c (c_decl_attributes): Also add "omp declare target" attribute for DECL_EXTERNAL VAR_DECLs.

* c-decl.c (c_decl_attributes): Also add "omp declare target"
attribute for DECL_EXTERNAL VAR_DECLs.

* decl2.c (cplus_decl_attributes): Also add "omp declare target"
attribute for DECL_EXTERNAL VAR_DECLs.

* testsuite/libgomp.c/target-10.c: New test.
* testsuite/libgomp.c++/target-4.C: New test.

From-SVN: r221520
gcc/c/ChangeLog
gcc/c/c-decl.c
gcc/cp/ChangeLog
gcc/cp/decl2.c
libgomp/ChangeLog
libgomp/testsuite/libgomp.c++/target-4.C [new file with mode: 0644]
libgomp/testsuite/libgomp.c/target-10.c [new file with mode: 0644]