From 3ac4c44a58c0efc38fea252672028a1737036e32 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Thu, 12 Jun 2008 15:49:18 +0200 Subject: [PATCH] re PR middle-end/36506 (Broken #pragma omp sections reduction (+:x)) PR middle-end/36506 * omp-low.c (expand_omp_sections): Initialize l2 to avoid bogus warning. From-SVN: r136708 --- gcc/ChangeLog | 6 ++++++ gcc/omp-low.c | 1 + 2 files changed, 7 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f91be0b6eb2..36e39d6d26a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2008-06-12 Jakub Jelinek + + PR middle-end/36506 + * omp-low.c (expand_omp_sections): Initialize l2 to avoid bogus + warning. + 2008-06-12 Eric Botcazou * tree-inline.c (copy_body_r): Copy TREE_SIDE_EFFECTS along with diff --git a/gcc/omp-low.c b/gcc/omp-low.c index 85b83332ff8..e51369aaffe 100644 --- a/gcc/omp-low.c +++ b/gcc/omp-low.c @@ -4410,6 +4410,7 @@ expand_omp_sections (struct omp_region *region) gcc_assert (len > 0); e = EDGE_SUCC (l0_bb, len - 1); si = bsi_last (e->dest); + l2 = NULL_TREE; if (bsi_end_p (si) || TREE_CODE (bsi_stmt (si)) != OMP_SECTION) l2 = tree_block_label (e->dest); else -- 2.30.2