]> git.ipfire.org Git - thirdparty/gcc.git/commit
PR middle-end/90779
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 15 Jun 2019 07:09:04 +0000 (07:09 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 15 Jun 2019 07:09:04 +0000 (07:09 +0000)
commit722ae48db95a72d99a7a4dc054c6fcd661a81d7d
tree2ee472c92423b3830a2afa44855e5bf7fdf62803
parentf1a27d20b7f6ef3e59e7477d76892a7c9eeaeea4
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@272322 138bc75d-0d04-0410-961f-82ee72b054a4
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]