diff mbox

[committed] Fix a warning in omp-low.c

Message ID 20160117180847.GR3017@tucnak.redhat.com
State New
Headers show

Commit Message

Jakub Jelinek Jan. 17, 2016, 6:08 p.m. UTC
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  <jakub@redhat.com>

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


	Jakub
diff mbox

Patch

--- 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);