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:54 +0000 (20:54 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 22 May 2017 18:54:54 +0000 (20:54 +0200)
commit655e52652b2af93ae6508dfc2026c6903bf391de
treef78ceed96325d47d3bf86d478392268ca65be633
parente9e2ef9f2f1e037e0f3bc4990947e242106e43b9
re PR middle-end/80809 (Multi-free error for variable size array used within OpenMP task)

PR middle-end/80809
* omp-low.c (finish_taskreg_remap): New function.
(finish_taskreg_scan): If unit size of ctx->record_type
is non-constant, unshare the size expression and replace
decls in it with possible outer var refs.

* testsuite/libgomp.c/pr80809-2.c: New test.
* testsuite/libgomp.c/pr80809-3.c: New test.

From-SVN: r248346
gcc/ChangeLog
gcc/omp-low.c
libgomp/ChangeLog
libgomp/testsuite/libgomp.c/pr80809-2.c [new file with mode: 0644]
libgomp/testsuite/libgomp.c/pr80809-3.c [new file with mode: 0644]