re PR middle-end/36506 (Broken #pragma omp sections reduction (+:x))
authorJakub Jelinek <jakub@redhat.com>
Thu, 12 Jun 2008 13:49:18 +0000 (15:49 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 12 Jun 2008 13:49:18 +0000 (15:49 +0200)
PR middle-end/36506
* omp-low.c (expand_omp_sections): Initialize l2 to avoid bogus
warning.

From-SVN: r136708

gcc/ChangeLog
gcc/omp-low.c

index f91be0b6eb24eae44a7ca9e863aeb09b67892106..36e39d6d26a0f6799ad987aa215254f689e63ad8 100644 (file)
@@ -1,3 +1,9 @@
+2008-06-12  Jakub Jelinek  <jakub@redhat.com>
+
+       PR middle-end/36506
+       * omp-low.c (expand_omp_sections): Initialize l2 to avoid bogus
+       warning.
+
 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
 
        * tree-inline.c (copy_body_r): Copy TREE_SIDE_EFFECTS along with
index 85b83332ff80614dde1c7c1522fbc76e447793d4..e51369aaffefbc1458b79c1c49083d679a76ebcb 100644 (file)
@@ -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