From 3f217497caa3f5c98cd933df2efcac6f6d462185 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Sun, 17 Jan 2016 19:04:47 +0100 Subject: [PATCH] omp-low.c (mark_loops_in_oacc_kernels_region): Work around -Wmaybe-uninitialized warning. * omp-low.c (mark_loops_in_oacc_kernels_region): Work around -Wmaybe-uninitialized warning. From-SVN: r232484 --- gcc/ChangeLog | 7 ++++++- gcc/omp-low.c | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1b446ac..5a5d45b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,4 +1,9 @@ -2016-01-16 Sandra Loosemore +2016-01-17 Jakub Jelinek + + * omp-low.c (mark_loops_in_oacc_kernels_region): Work around + -Wmaybe-uninitialized warning. + +2016-01-16 Sandra Loosemore * doc/invoke.texi (Invoking GCC): Add new section to menu. (Option Summary): Update to reflect new section and moved options. diff --git a/gcc/omp-low.c b/gcc/omp-low.c index b391ee0..be472c0 100644 --- a/gcc/omp-low.c +++ b/gcc/omp-low.c @@ -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); -- 2.7.4