omp-low: fix lastprivate/linear lowering for SIMT
authorAlexander Monakov <amonakov@ispras.ru>
Thu, 20 Apr 2017 17:21:50 +0000 (20:21 +0300)
committerAlexander Monakov <amonakov@gcc.gnu.org>
Thu, 20 Apr 2017 17:21:50 +0000 (20:21 +0300)
commit2260d19d4be6218c0dfffe6f87fc7665a09d5ba5
treed48f636ed59fd051513d237e7f224ac325b3b196
parentc3cbcd451736f5257446e927bb880ace569f4a45
omp-low: fix lastprivate/linear lowering for SIMT

gcc/
* omp-low.c (lower_lastprivate_clauses): Correct handling of linear and
lastprivate clauses in SIMT case.

libgomp/
* testsuite/libgomp.c/target-36.c: New testcase.

From-SVN: r247029
gcc/ChangeLog
gcc/omp-low.c
libgomp/ChangeLog
libgomp/testsuite/libgomp.c/target-36.c [new file with mode: 0644]