re PR middle-end/35196 (lastprivate broken for static non-ordered loops)
authorJakub Jelinek <jakub@redhat.com>
Fri, 15 Feb 2008 17:42:25 +0000 (18:42 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 15 Feb 2008 17:42:25 +0000 (18:42 +0100)
commitac84c0623d12bb99990f34f6bfdf0b17ab976ad6
tree00838c45dda5e882688c9dd4d4b72503f4c309c9
parent6a9e85714c092d145293dbb71a748a8ab7b19961
re PR middle-end/35196 (lastprivate broken for static non-ordered loops)

PR middle-end/35196
* omp-low.c (expand_omp_for_generic): Don't initialize fd->v
in entry_bb.
(expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
rather than in entry_bb.

* testsuite/libgomp.c/pr35196.c: New test.

From-SVN: r132351
gcc/ChangeLog
gcc/omp-low.c
libgomp/ChangeLog
libgomp/testsuite/libgomp.c/pr35196.c [new file with mode: 0644]