2013-04-29 Richard Biener <rguenther@suse.de>
commit04c2922b5ff814787961c16baf96c0b96a83e27a
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 29 Apr 2013 11:31:33 +0000 (29 11:31 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 29 Apr 2013 11:31:33 +0000 (29 11:31 +0000)
tree61001fc0e3cfd07317d65df1f7c32549a40040c4
parent3349fabd170b94b9edeac3721b6ab4cafcd38188
2013-04-29  Richard Biener  <rguenther@suse.de>

PR middle-end/57089
* omp-low.c (expand_omp_taskreg): If the parent function had
a broken loop tree make sure to schedule a fixup for the child
as well.
(expand_omp_for_generic): Properly add loops.
(expand_omp_for_static_nochunk): Likewise.
(expand_omp_for_static_chunk): Likewise.
(expand_omp_for): For the degenerate case fixup loops.
(expand_omp_sections): Fix default bb placement in loops.
(expand_omp_atomic_pipeline): Properly add loops.

* gfortran.dg/gomp/pr57089.f90: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@198409 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/omp-low.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/gomp/pr57089.f90 [new file with mode: 0644]