re PR middle-end/80809 (Multi-free error for variable size array used within OpenMP...
authorJakub Jelinek <jakub@redhat.com>
Mon, 22 May 2017 18:54:05 +0000 (20:54 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 22 May 2017 18:54:05 +0000 (20:54 +0200)
commite9e2ef9f2f1e037e0f3bc4990947e242106e43b9
tree7824d1e6f2475b21c05bfc71e55b7adcb45da4f7
parentc24783c49924474f54feb0c6038cba4719125634
re PR middle-end/80809 (Multi-free error for variable size array used within OpenMP task)

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.

From-SVN: r248345
gcc/ChangeLog
gcc/gimplify.c
libgomp/ChangeLog
libgomp/testsuite/libgomp.c/pr80809-1.c [new file with mode: 0644]