re PR middle-end/90779 (Fortran array initialization in offload regions)
authorJakub Jelinek <jakub@redhat.com>
Sat, 15 Jun 2019 07:09:04 +0000 (09:09 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Sat, 15 Jun 2019 07:09:04 +0000 (09:09 +0200)
commit211b7533bff68e5dd72e7d75249f470101759d6d
tree2ee472c92423b3830a2afa44855e5bf7fdf62803
parent120a01d160cd47b4276507dc8f6c1ab571a9c006
re PR middle-end/90779 (Fortran array initialization in offload regions)

PR middle-end/90779
* gimplify.c: Include omp-offload.h and context.h.
(gimplify_bind_expr): Add "omp declare target" attributes
to static block scope variables inside of target region or target
functions.

* c-c++-common/goacc/routine-5.c (func2): Don't expect error for
static block scope variable in #pragma acc routine.

* testsuite/libgomp.c/pr90779.c: New test.
* testsuite/libgomp.fortran/pr90779.f90: New test.

From-SVN: r272322
gcc/ChangeLog
gcc/gimplify.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/goacc/routine-5.c
libgomp/ChangeLog
libgomp/testsuite/libgomp.c/pr90779.c [new file with mode: 0644]
libgomp/testsuite/libgomp.fortran/pr90779.f90 [new file with mode: 0644]