* c-attribs.c (c_common_attribute_table): Add
commit12f69ea45621bae894d9ef4c5f8cfed4e314c130
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 12 Jul 2018 19:36:01 +0000 (12 19:36 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 12 Jul 2018 19:36:01 +0000 (12 19:36 +0000)
tree211237062b7d9f8fe1a8f83048df1c6535b2bc5c
parenta98e3424409176b12ff7a14416ded1ce3edcf4a3
* c-attribs.c (c_common_attribute_table): Add
"omp declare target implicit" attribute.

* c-decl.c (c_decl_attributes): Don't diagnose vars without mappable
type here, instead add "omp declare target implicit" attribute.
(finish_decl): Diagnose vars without mappable type here.

* decl2.c (cplus_decl_attributes): Don't diagnose vars without mappable
type here, instead add "omp declare target implicit" attribute.  Add
that attribute instead of "omp declare target" also when
processing_template_decl.
* decl.c (cp_finish_decl): Diagnose vars without mappable type here,
and before calling cp_omp_mappable_type call complete_type.

* c-c++-common/gomp/declare-target-3.c: New test.
* g++.dg/gomp/declare-target-2.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@262605 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/c-family/ChangeLog
gcc/c-family/c-attribs.c
gcc/c/ChangeLog
gcc/c/c-decl.c
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/cp/decl2.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/gomp/declare-target-3.c [new file with mode: 0644]
gcc/testsuite/g++.dg/gomp/declare-target-2.C [new file with mode: 0644]