diff options
author | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-01-26 09:47:45 +0000 |
---|---|---|
committer | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-01-26 09:47:45 +0000 |
commit | 295e9e855b1e82196a401d1a81a12ab46f707017 (patch) | |
tree | 094c302583674e00bfb7e1463b5375d15e6c0daa /gcc/omp-low.c | |
parent | 41980ad9c20a4b00e7eaf3e8468feab4198401e2 (diff) | |
download | gcc-295e9e855b1e82196a401d1a81a12ab46f707017.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@156235 138bc75d-0d04-0410-961f-82ee72b054a4
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 317003186d1..bb1a86a6648 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 { |