[PATCH], PR 79212: Fix ICE when compiling fortran test with openmp
David Sherwood
David.Sherwood@arm.com
Tue Jan 24 17:31:00 GMT 2017
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.sherwood@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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr79212.patch
Type: application/octet-stream
Size: 1161 bytes
Desc: pr79212.patch
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20170124/ff3f681b/attachment.obj>
More information about the Gcc-patches
mailing list