diff options
author | Jakub Jelinek <jakub@redhat.com> | 2010-01-26 10:47:45 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2010-01-26 10:47:45 +0100 |
commit | 057dd91d0c1df52679f71644d95fea2ae9522f3e (patch) | |
tree | 094c302583674e00bfb7e1463b5375d15e6c0daa /gcc/omp-low.c | |
parent | 667b3d84361144ef7028afeae26033898ab51659 (diff) | |
download | gcc-057dd91d0c1df52679f71644d95fea2ae9522f3e.zip gcc-057dd91d0c1df52679f71644d95fea2ae9522f3e.tar.gz gcc-057dd91d0c1df52679f71644d95fea2ae9522f3e.tar.bz2 |
re PR fortran/42866 (ICE for REDUCTION with ALLOCATABLE array as variable on SECTIONS)
PR fortran/42866
* omp-low.c (expand_omp_sections): Only use single_pred if
l2_bb is single_pred_p.
* testsuite/libgomp.fortran/allocatable5.f90: New test.
From-SVN: r156235
Diffstat (limited to 'gcc/omp-low.c')
-rw-r--r-- | gcc/omp-low.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/omp-low.c b/gcc/omp-low.c index 3170031..bb1a86a 100644 --- a/gcc/omp-low.c +++ b/gcc/omp-low.c @@ -4663,7 +4663,7 @@ expand_omp_sections (struct omp_region *region) l2_bb = region->exit; if (exit_reachable) { - if (single_pred (l2_bb) == l0_bb) + if (single_pred_p (l2_bb) && single_pred (l2_bb) == l0_bb) l2 = gimple_block_label (l2_bb); else { |