]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/omp-low.c
re PR other/39591 (GOMP_loop_end illegally optmized into GOMP_loop_end_nowait)
authorJakub Jelinek <jakub@redhat.com>
Wed, 1 Apr 2009 06:54:52 +0000 (08:54 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 1 Apr 2009 06:54:52 +0000 (08:54 +0200)
commit03742a9b0159abadf88dc259d1331b48cf102e73
tree21d252b6e42e3b03c7ed6cbdf149f1b4814d94fc
parent4223ff5f252b650b7e799d7e919bbc1796901aed
re PR other/39591 (GOMP_loop_end illegally optmized into GOMP_loop_end_nowait)

PR other/39591
* omp-low.c (remove_exit_barrier): Don't optimize if there are any
addressable variables in the parallel that could go out of scope while
running queued tasks.

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

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