https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65597
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Wed Jun 3 15:31:46 2015 New Revision: 224090 URL: https://gcc.gnu.org/viewcvs?rev=224090&root=gcc&view=rev Log: Backported from mainline 2015-03-30 Jakub Jelinek <ja...@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. Added: branches/gcc-4_9-branch/libgomp/testsuite/libgomp.fortran/pr65597.f90 Modified: branches/gcc-4_9-branch/gcc/fortran/ChangeLog branches/gcc-4_9-branch/gcc/fortran/trans-openmp.c branches/gcc-4_9-branch/libgomp/ChangeLog