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>
Sun, 15 Mar 2020 00:27:40 +0000 (01:27 +0100)
commit9c3cdb43c2bdaf8a8d2e62db010b04f6086d76b7
tree59bbb8a6a2892d56de4577ba28435490ab0b4479
parent89769d70af2362bbae1f93800ffc8b74f553acfd
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]