]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-nested: Fix handling of *reduction clauses with C array sections [PR93566]
authorJakub Jelinek <jakub@redhat.com>
Sun, 15 Mar 2020 00:27:40 +0000 (01:27 +0100)
committerJakub Jelinek <jakub@redhat.com>
Tue, 17 Mar 2020 17:22:56 +0000 (18:22 +0100)
commita8fc40fd551a60a97efbfe3fee08721accd80964
tree2132c265a59a3fecc64c55b8d7f4f83cc9ff976c
parentc2f836c413b1e9ae45598338b4a2ecd33bd926fb
tree-nested: Fix handling of *reduction clauses with C array sections [PR93566]

tree-nested.c didn't handle C array sections in {,task_,in_}reduction clauses.

2020-03-14  Jakub Jelinek  <jakub@redhat.com>

PR middle-end/93566
* tree-nested.c (convert_nonlocal_omp_clauses,
convert_local_omp_clauses): Handle {,in_,task_}reduction clauses
with C/C++ array sections.

* testsuite/libgomp.c/pr93566.c: New test.
gcc/ChangeLog
gcc/tree-nested.c
libgomp/ChangeLog
libgomp/testsuite/libgomp.c/pr93566.c [new file with mode: 0644]