https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89002
--- Comment #10 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Fri Aug 30 11:33:12 2019 New Revision: 275093 URL: https://gcc.gnu.org/viewcvs?rev=275093&root=gcc&view=rev Log: Backported from mainline 2019-01-28 Jakub Jelinek <ja...@redhat.com> PR middle-end/89002 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ for lastprivate/linear IV, push gimplify context around gimplify_assign and, if it needed any temporaries, pop it into a gimple bind around the sequence. * testsuite/libgomp.c/pr89002.c: New test. Added: branches/gcc-7-branch/libgomp/testsuite/libgomp.c/pr89002.c Modified: branches/gcc-7-branch/gcc/ChangeLog branches/gcc-7-branch/gcc/gimplify.c branches/gcc-7-branch/libgomp/ChangeLog