This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/70680] [5/6/7 Regression] OpenMP SIMD linear variable privatized too eagerly
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 20 Apr 2016 01:42:55 +0000
- Subject: [Bug middle-end/70680] [5/6/7 Regression] OpenMP SIMD linear variable privatized too eagerly
- Auto-submitted: auto-generated
- References: <bug-70680-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70680
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Wed Apr 20 01:42:24 2016
New Revision: 235232
URL: https://gcc.gnu.org/viewcvs?rev=235232&root=gcc&view=rev
Log:
PR middle-end/70680
* gimplify.c (gimplify_omp_for): Call omp_notice_variable for
implicitly linear or lastprivate iterator on the outer context.
* testsuite/libgomp.c/pr70680-1.c: New test.
* testsuite/libgomp.c/pr70680-2.c: New test.
Added:
trunk/libgomp/testsuite/libgomp.c/pr70680-1.c
trunk/libgomp/testsuite/libgomp.c/pr70680-2.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/gimplify.c
trunk/libgomp/ChangeLog