re PR middle-end/65597 (ICE in build_outer_var_ref, at omp-low.c:1043)
authorJakub Jelinek <jakub@redhat.com>
Mon, 30 Mar 2015 17:54:05 +0000 (19:54 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 30 Mar 2015 17:54:05 +0000 (19:54 +0200)
commit6c384511a36aa97eda218a2935fe3a14720e3b59
treee169c7dce5304cb388868183121b7389a1585e6c
parent744e26e71e5df840ff1fa5e351cadba31e7c29a6
re PR middle-end/65597 (ICE in build_outer_var_ref, at omp-low.c:1043)

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: r221776
gcc/fortran/ChangeLog
gcc/fortran/trans-openmp.c
libgomp/ChangeLog
libgomp/testsuite/libgomp.fortran/pr65597.f90 [new file with mode: 0644]