Hi!

This fixes a warning in mark_loops_in_oacc_kernels_region.
Bootstrapped/regtested on x86_64-linux and i686-linux, committed to trunk.

2016-01-17  Jakub Jelinek  <ja...@redhat.com>

        * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
        -Wmaybe-uninitialized warning.

--- gcc/omp-low.c.jj    2016-01-14 22:31:22.000000000 +0100
+++ gcc/omp-low.c       2016-01-16 11:30:49.321974885 +0100
@@ -12539,7 +12539,7 @@ mark_loops_in_oacc_kernels_region (basic
   /* Don't parallelize the kernels region if it contains more than one outer
      loop.  */
   unsigned int nr_outer_loops = 0;
-  struct loop *single_outer;
+  struct loop *single_outer = NULL;
   for (struct loop *loop = outer->inner; loop != NULL; loop = loop->next)
     {
       gcc_assert (loop_outer (loop) == outer);

        Jakub

Reply via email to