Fix diff_type in expand_oacc_for char iter_type
commitff88bae78d5df9db2367781d6052742008fe77a6
authorvries <vries@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 7 Aug 2017 17:06:11 +0000 (7 17:06 +0000)
committervries <vries@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 7 Aug 2017 17:06:11 +0000 (7 17:06 +0000)
tree75adc4e765783e7a1a3ac4a08c86f29481880c7c
parent141e83d9de92c4947f6bc8dc111d428318d7d36e
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@250925 138bc75d-0d04-0410-961f-82ee72b054a4
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