[nvptx] Handle assignment to gang-level reduction variable
authorTom de Vries <tdevries@suse.de>
Tue, 15 Jan 2019 10:11:16 +0000 (10:11 +0000)
committerTom de Vries <vries@gcc.gnu.org>
Tue, 15 Jan 2019 10:11:16 +0000 (10:11 +0000)
commitd41d952c9bbdffe6fd2badc9c4f2c18d241ce412
treefdceb1ac2aa40eab19d344b5ab5e33831dd367bf
parent4882e5badaad9a0174a8ace1d71448e0f824bdf1
[nvptx] Handle assignment to gang-level reduction variable

2019-01-15  Tom de Vries  <tdevries@suse.de>

PR target/80547
* config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
lhs == NULL_TREE for gang-level reduction.

* testsuite/libgomp.oacc-c-c++-common/gang-reduction-var-assignment.c:
New test.

From-SVN: r267934
gcc/ChangeLog
gcc/config/nvptx/nvptx.c
libgomp/ChangeLog
libgomp/testsuite/libgomp.oacc-c-c++-common/gang-reduction-var-assignment.c [new file with mode: 0644]