[Bug libgomp/80394] Empty OpenMP task is wrongly removed when optimizing

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri May 5 21:55:00 GMT 2017


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


More information about the Gcc-bugs mailing list