Hi, I have a patch to fix the following openmp issue:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79212 Writing openmp directives in a certain way in fortran programs can lead to the following assert: internal compiler error: in maybe_lookup_decl_in_outer_ctx, at omp-low.c:4134 0xa941e6 maybe_lookup_decl_in_outer_ctx /work/davshe01/oban-work-shoji/src/gcc/gcc/omp-low.c:4134 0xa9cadc scan_sharing_clauses /work/davshe01/oban-work-shoji/src/gcc/gcc/omp-low.c:1975 Tested: aarch64 - No regressions in gcc/testsuite/fortran.dg, gcc/testsuite/gcc.dg, gcc/testsuite/g++.dg or libgomp/testsuite Will do a full test run before submitting. Good to go? David Sherwood. ChangeLog: 2017-01-24 David Sherwood <david.sherw...@arm.com> PR middle-end/79212 gcc/ * gimplify.c (omp_notice_variable): Add GOVD_SEEN flag to variables in all contexts. gcc/testsuite/ * gfortran.dg/gomp/sharing-4.f90: New test.
pr79212.patch
Description: pr79212.patch