omp-low.c (lower_rec_input_clauses): For lastprivate conditional references...
authorJakub Jelinek <jakub@redhat.com>
Wed, 5 Jun 2019 07:37:40 +0000 (09:37 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 5 Jun 2019 07:37:40 +0000 (09:37 +0200)
commit28b3a77ca055b31aa20c6d263be42c49be32756b
treed8b2e5d9a854fa1c38354bd53152dc401bc87199
parent9ea2bfca6a3fd80f14d24557f71efaafae3846a9
omp-low.c (lower_rec_input_clauses): For lastprivate conditional references...

* omp-low.c (lower_rec_input_clauses): For lastprivate conditional
references, lookup in in hash map MEM_REF operand instead of the
MEM_REF itself.
(lower_omp_1): When looking for lastprivate conditional assignments,
handle MEM_REFs with REFERENCE_TYPE operands.

* testsuite/libgomp.c++/lastprivate-conditional-1.C: New test.
* testsuite/libgomp.c++/lastprivate-conditional-2.C: New test.

From-SVN: r271948
gcc/ChangeLog
gcc/omp-low.c
libgomp/ChangeLog
libgomp/testsuite/libgomp.c++/lastprivate-conditional-1.C [new file with mode: 0644]
libgomp/testsuite/libgomp.c++/lastprivate-conditional-2.C [new file with mode: 0644]