re PR libgomp/80394 (Empty OpenMP task is wrongly removed when optimizing)
authorJakub Jelinek <jakub@redhat.com>
Tue, 11 Apr 2017 17:15:47 +0000 (19:15 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 11 Apr 2017 17:15:47 +0000 (19:15 +0200)
commitfbc698e0f4c35b3d16127682636bd141fad1d369
tree1b7c0a6ec56ef768e30e5aefbb8f962556f53a6e
parentc6cf6ef7c090883c950ed6bec89bbee887130130
re PR libgomp/80394 (Empty OpenMP task is wrongly removed when optimizing)

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.

From-SVN: r246849
gcc/ChangeLog
gcc/omp-low.c
libgomp/ChangeLog
libgomp/testsuite/libgomp.c/pr80394.c [new file with mode: 0644]