[nvptx] Allow default vl to be overridden in nvptx_goacc_validate_dims_1
authorTom de Vries <tdevries@suse.de>
Sat, 12 Jan 2019 10:27:23 +0000 (10:27 +0000)
committerTom de Vries <vries@gcc.gnu.org>
Sat, 12 Jan 2019 10:27:23 +0000 (10:27 +0000)
commitd6f528e70ad88ddcc9786e6050d92e003d19d0a3
tree5b5868ba8c1ea9e98c9b85cebc9eb438b7c082ef
parent980af7cd8fb385f9bb818e29d08fe4af73cd2788
[nvptx] Allow default vl to be overridden in nvptx_goacc_validate_dims_1

In nvptx_goacc_validate_dims_1, allow oacc_default_dims[DIM_VECTOR] to be
overridden, by assigning it to a new variable default_vector_length at the
start, and using it at the end.

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

* config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
variable default_vector_length.

From-SVN: r267878
gcc/ChangeLog
gcc/config/nvptx/nvptx.c