This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]