This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libgomp/80394] Empty OpenMP task is wrongly removed when optimizing
- 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: Fri, 05 May 2017 21:54:38 +0000
- Subject: [Bug libgomp/80394] Empty OpenMP task is wrongly removed when optimizing
- Auto-submitted: auto-generated
- References: <bug-80394-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80394
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Fri May 5 21:54:06 2017
New Revision: 247700
URL: https://gcc.gnu.org/viewcvs?rev=247700&root=gcc&view=rev
Log:
Backported from mainline
2017-04-11 Jakub Jelinek <jakub@redhat.com>
PR libgomp/80394
* omp-low.c (scan_omp_task): Don't optimize away empty tasks
if they have any depend clauses.
* testsuite/libgomp.c/pr80394.c: New test.
Added:
branches/gcc-6-branch/libgomp/testsuite/libgomp.c/pr80394.c
Modified:
branches/gcc-6-branch/gcc/ChangeLog
branches/gcc-6-branch/gcc/omp-low.c
branches/gcc-6-branch/libgomp/ChangeLog