]> gcc.gnu.org Git - gcc.git/commit
re PR middle-end/30421 (incorrect warning when using firstprivate and lastprivate...
authorJakub Jelinek <jakub@redhat.com>
Wed, 24 Jan 2007 20:53:08 +0000 (21:53 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 24 Jan 2007 20:53:08 +0000 (21:53 +0100)
commit3d55c64b495dd49e7b91b451837d93a380764af2
tree07cb9a206541bde42c9c6be7832b934cf29ebd3b
parent62df28055046ccd89dfbe6421baf0f5ebe08e7df
re PR middle-end/30421 (incorrect warning when using firstprivate and lastprivate clauses)

PR middle-end/30421
* omp-low.c (lower_omp_for_lastprivate): Add dlist argument.
If lower_lastprivate_clauses emits some statements, append them
to dlist rather than body_p and to body_p append an initializer.
(lower_omp_for): Adjust caller.

* gcc.dg/gomp/pr30421.c: New test.

From-SVN: r121131
gcc/ChangeLog
gcc/omp-low.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/gomp/pr30421.c [new file with mode: 0644]
This page took 0.060316 seconds and 5 git commands to generate.