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 middle-end/80809] Multi-free error for variable size array used within OpenMP task


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80809

--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Thu Jun 22 11:08:25 2017
New Revision: 249505

URL: https://gcc.gnu.org/viewcvs?rev=249505&root=gcc&view=rev
Log:
        Backported from mainline
        2017-05-22  Jakub Jelinek  <jakub@redhat.com>

        PR middle-end/80809
        * gimplify.c (omp_add_variable): For GOVD_DEBUG_PRIVATE use
        GOVD_SHARED rather than GOVD_PRIVATE with it.
        (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Expect
        GOVD_SHARED rather than GOVD_PRIVATE with GOVD_DEBUG_PRIVATE.

        * testsuite/libgomp.c/pr80809-1.c: New test.

Added:
    branches/gcc-6-branch/libgomp/testsuite/libgomp.c/pr80809-1.c
Modified:
    branches/gcc-6-branch/gcc/ChangeLog
    branches/gcc-6-branch/gcc/gimplify.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]