]> git.ipfire.org Git - thirdparty/gcc.git/commit
backport: re PR middle-end/65597 (ICE in build_outer_var_ref, at omp-low.c:1043)
authorJakub Jelinek <jakub@redhat.com>
Wed, 3 Jun 2015 15:31:46 +0000 (17:31 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 3 Jun 2015 15:31:46 +0000 (17:31 +0200)
commit6cbcd616961e68603d70064d663c870fba7b8e12
tree8eddd6caa97ad284ca5da83d374e470778ffd4a7
parent9bf03386ece9f47ea54d3299b9092b0f6861fe92
backport: re PR middle-end/65597 (ICE in build_outer_var_ref, at omp-low.c:1043)

Backported from mainline
2015-03-30  Jakub Jelinek  <jakub@redhat.com>

PR fortran/65597
* trans-openmp.c (gfc_trans_omp_do): For !simple simd with explicit
linear clause for the iterator set OMP_CLAUSE_LINEAR_NO_COPYIN.
For implcitly added !simple OMP_CLAUSE_LINEAR set it too.  Use step 1
instead of the original step on the new iterator - count.

* testsuite/libgomp.fortran/pr65597.f90: New test.

From-SVN: r224090
gcc/fortran/ChangeLog
gcc/fortran/trans-openmp.c
libgomp/ChangeLog
libgomp/testsuite/libgomp.fortran/pr65597.f90 [new file with mode: 0644]