omp-low.c (mark_loops_in_oacc_kernels_region): Work around -Wmaybe-uninitialized...
authorJakub Jelinek <jakub@gcc.gnu.org>
Sun, 17 Jan 2016 18:04:47 +0000 (19:04 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Sun, 17 Jan 2016 18:04:47 +0000 (19:04 +0100)
* omp-low.c (mark_loops_in_oacc_kernels_region): Work around
-Wmaybe-uninitialized warning.

From-SVN: r232484

gcc/ChangeLog
gcc/omp-low.c

index 1b446ac..5a5d45b 100644 (file)
@@ -1,4 +1,9 @@
-2016-01-16  Sandra Loosemore <sandra@codesourcery.com>
+2016-01-17  Jakub Jelinek  <jakub@redhat.com>
+
+       * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
+       -Wmaybe-uninitialized warning.
+
+2016-01-16  Sandra Loosemore  <sandra@codesourcery.com>
 
        * doc/invoke.texi (Invoking GCC): Add new section to menu.
        (Option Summary): Update to reflect new section and moved options.
index b391ee0..be472c0 100644 (file)
@@ -12543,7 +12543,7 @@ mark_loops_in_oacc_kernels_region (basic_block region_entry,
   /* 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);