OpenACC: Fix integer-type issue with collapse/tile [PR97880]
authorTobias Burnus <tobias@codesourcery.com>
Fri, 27 Nov 2020 10:17:50 +0000 (11:17 +0100)
committerTobias Burnus <tobias@codesourcery.com>
Fri, 27 Nov 2020 10:18:35 +0000 (11:18 +0100)
commitf324479caf0ac326534f4fcf72cb12991ccddb3d
tree76391476305d942b4f1567fc104fc233db0a3bb7
parent5f29f3d5dd94c3f8eef10492a657a0719d4b3318
OpenACC: Fix integer-type issue with collapse/tile [PR97880]

gcc/ChangeLog:

PR c/97880
* omp-expand.c (expand_oacc_collapse_init, expand_oacc_collapse_vars):
Use now passed diff_type.
(expand_oacc_for): Take largest type for diff_type, taking tiling
and collapsing into account.

gcc/testsuite/ChangeLog:

PR c/97880
* gcc.dg/goacc/tile-1.c: New test.
gcc/omp-expand.c
gcc/testsuite/gcc.dg/goacc/tile-1.c [new file with mode: 0644]