https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81768
--- Comment #11 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Fri Sep 15 21:39:36 2017 New Revision: 252861 URL: https://gcc.gnu.org/viewcvs?rev=252861&root=gcc&view=rev Log: Backported from mainline 2017-09-05 Jakub Jelinek <ja...@redhat.com> PR middle-end/81768 * omp-low.c (lower_omp_for): Recompute tree invariant if gimple_omp_for_initial/final is ADDR_EXPR. * gcc.dg/gomp/pr81768-2.c: New test. Added: branches/gcc-6-branch/gcc/testsuite/gcc.dg/gomp/pr81768-2.c Modified: branches/gcc-6-branch/gcc/ChangeLog branches/gcc-6-branch/gcc/omp-low.c branches/gcc-6-branch/gcc/testsuite/ChangeLog