nvptx.c (global_lock_var): New.
authorNathan Sidwell <nathan@codesourcery.com>
Wed, 18 Nov 2015 13:49:17 +0000 (13:49 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Wed, 18 Nov 2015 13:49:17 +0000 (13:49 +0000)
commit33f47f427920586a6f21dd8f1b1adc582b9fb7af
tree91925ad53ac42a3a444905c3ffb894e6ec7c3a18
parentd085c468179245fdd31c1014d3029ddd9e116e01
nvptx.c (global_lock_var): New.

gcc/
* config/nvptx/nvptx.c (global_lock_var): New.
(nvptx_global_lock_addr): New.
(nvptx_lockless_update): Recomment and adjust for clarity.
(nvptx_lockfull_update): New.
(nvptx_reduction_update): New.
(nvptx_goacc_reduction_fini): Call it.

libgcc/
* config/nvptx/reduction.c: New.
* config/nvptx/t-nvptx (LIB2ADD): Add it.

libgomp/
* testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
worker & gang cases.
* testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.

From-SVN: r230545
gcc/ChangeLog
gcc/config/nvptx/nvptx.c
libgcc/ChangeLog
libgcc/config/nvptx/reduction.c [new file with mode: 0644]
libgcc/config/nvptx/t-nvptx
libgomp/ChangeLog
libgomp/testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c
libgomp/testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c