[openacc] Fix diff_type in expand_oacc_collapse_init
authorTom de Vries <tom@codesourcery.com>
Wed, 7 Feb 2018 10:37:55 +0000 (10:37 +0000)
committerTom de Vries <vries@gcc.gnu.org>
Wed, 7 Feb 2018 10:37:55 +0000 (10:37 +0000)
commitc31bc4ac378f56593caae12bba086a98d002bb64
treedfa3bfa19dcae0483c3e1882e6aa1463d0f22550
parent26a823f03b214ce8412c4a255e483cc81c315bb4
[openacc] Fix diff_type in expand_oacc_collapse_init

2018-02-07  Tom de Vries  <tom@codesourcery.com>

PR libgomp/84217
* omp-expand.c (expand_oacc_collapse_init): Ensure diff_type is large
enough.

* c-c++-common/goacc/pr84217.c: New test.
* gfortran.dg/goacc/pr84217.f90: New test.

* testsuite/libgomp.oacc-c-c++-common/pr84217.c: New test.

From-SVN: r257443
gcc/ChangeLog
gcc/omp-expand.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/goacc/pr84217.c [new file with mode: 0644]
gcc/testsuite/gfortran.dg/goacc/pr84217.f90 [new file with mode: 0644]
libgomp/ChangeLog
libgomp/testsuite/libgomp.oacc-c-c++-common/pr84217.c [new file with mode: 0644]