[PR89433] Refer to OpenACC 'routine' clauses from "omp declare target" attribute
authorThomas Schwinge <thomas@codesourcery.com>
Fri, 17 May 2019 19:13:04 +0000 (21:13 +0200)
committerThomas Schwinge <tschwinge@gcc.gnu.org>
Fri, 17 May 2019 19:13:04 +0000 (21:13 +0200)
commite03436e7ac2ddbbf397a6d64309b01ad37cfcadf
tree22150e0e84ce3e0e987558f9ad64fc859fc24264
parent5d9a8091e2d2ad4122369a40ad3cd0d4e6131321
[PR89433] Refer to OpenACC 'routine' clauses from "omp declare target" attribute

gcc/c-family/
PR c/89433
* c-attribs.c (c_common_attribute_table): Set min_len to -1 for
"omp declare target".
gcc/c/
PR c/89433
* c-parser.c (c_finish_oacc_routine): Refer to OpenACC 'routine'
clauses from "omp declare target" attribute.
gcc/cp/
PR c++/89433
* parser.c (cp_finalize_oacc_routine): Refer to OpenACC 'routine'
clauses from "omp declare target" attribute.
gcc/fortran/
PR fortran/89433
* f95-lang.c (gfc_attribute_table): Set min_len to -1 for "omp
declare target".
* trans-decl.c (add_attributes_to_decl): Refer to OpenACC
'routine' clauses from "omp declare target" attribute.
gcc/testsuite/
PR testsuite/89433
* c-c++-common/goacc/classify-routine.c: Update.
* gfortran.dg/goacc/classify-routine.f95: Likewise.

From-SVN: r271343
12 files changed:
gcc/c-family/ChangeLog
gcc/c-family/c-attribs.c
gcc/c/ChangeLog
gcc/c/c-parser.c
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/fortran/ChangeLog
gcc/fortran/f95-lang.c
gcc/fortran/trans-decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/goacc/classify-routine.c
gcc/testsuite/gfortran.dg/goacc/classify-routine.f95