[openacc] Fix ICE when compiling tile loop containing infinite loop
commit05e0af43867f79ab6f2e9ad7664ec969ad484890
authorCesar Philippidis <cesar@codesourcery.com>
Mon, 16 Apr 2018 18:01:09 +0000 (16 11:01 -0700)
committerTom de Vries <vries@gcc.gnu.org>
Mon, 16 Apr 2018 18:01:09 +0000 (16 18:01 +0000)
tree77bb51f57a7a4946543700ee8edc336f786b0a87
parent2d4e0a12089d6bfe5079df70f0618c925bee79e8
[openacc] Fix ICE when compiling tile loop containing infinite loop

2018-04-16  Cesar Philippidis  <cesar@codesourcery.com>
    Tom de Vries  <tom@codesourcery.com>

PR middle-end/84955
* omp-expand.c (expand_oacc_for): Add dummy false branch for
tiled basic blocks without omp continue statements.

* testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
* testsuite/libgomp.oacc-fortran/pr84955.f90: New test.

Co-Authored-By: Tom de Vries <tom@codesourcery.com>
From-SVN: r259406
gcc/ChangeLog
gcc/omp-expand.c
libgomp/ChangeLog
libgomp/testsuite/libgomp.oacc-c-c++-common/pr84955.c [new file with mode: 0644]
libgomp/testsuite/libgomp.oacc-fortran/pr84955.f90 [new file with mode: 0644]