Fix diff_type in expand_oacc_for char iter_type
authorTom de Vries <tom@codesourcery.com>
Mon, 7 Aug 2017 17:06:11 +0000 (17:06 +0000)
committerTom de Vries <vries@gcc.gnu.org>
Mon, 7 Aug 2017 17:06:11 +0000 (17:06 +0000)
commitf4c222c0358dc0f9f6390e1eee1c6a9214f7f829
tree75adc4e765783e7a1a3ac4a08c86f29481880c7c
parent58fccd6c21433d60c8ff41272c2edec0d4f39df7
Fix diff_type in expand_oacc_for char iter_type

2017-08-07  Tom de Vries  <tom@codesourcery.com>

PR middle-end/78266
* omp-expand.c (expand_oacc_for): Ensure diff_type is large enough.

* testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
* testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.

From-SVN: r250925
gcc/ChangeLog
gcc/omp-expand.c
libgomp/ChangeLog
libgomp/testsuite/libgomp.oacc-c-c++-common/vprop-2.c [new file with mode: 0644]
libgomp/testsuite/libgomp.oacc-c-c++-common/vprop.c