re PR middle-end/91216 (OpenMP ICE starting with r265930)
authorJakub Jelinek <jakub@redhat.com>
Tue, 30 Jul 2019 07:28:22 +0000 (09:28 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 30 Jul 2019 07:28:22 +0000 (09:28 +0200)
commit03be2d2bb3b4450edfcb83ed047bf1f3ac3cf390
tree9e93a785ae954a54867af71157ce4639c7c7576d
parentfa2987ed8db073b9d59688363e2dfb6c60f47d70
re PR middle-end/91216 (OpenMP ICE starting with r265930)

PR middle-end/91216
* omp-low.c (global_nonaddressable_vars): New variable.
(use_pointer_for_field): For global decls, if they are non-addressable,
remember it in the global_nonaddressable_vars bitmap, if they are
addressable and in the global_nonaddressable_vars bitmap, ignore their
TREE_ADDRESSABLE bit.
(omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
vars in global_nonaddressable_vars bitmap.
(execute_lower_omp): Free global_nonaddressable_vars bitmap.

* gcc.dg/gomp/pr91216.c: New test.

From-SVN: r273898
gcc/ChangeLog
gcc/omp-low.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/gomp/pr91216.c [new file with mode: 0644]