From: Jakub Jelinek Date: Thu, 31 Jan 2019 23:05:01 +0000 (+0100) Subject: re PR middle-end/89137 (gcc/omp-low.c:7135: possible read of uninit memory ?) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=829a433832bd0c4759f5b71e4741b0bf407690c0;p=gcc.git re PR middle-end/89137 (gcc/omp-low.c:7135: possible read of uninit memory ?) PR middle-end/89137 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid bogus clang warning. From-SVN: r268434 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index bf8892946f6..fd4a6af7720 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2019-01-31 Jakub Jelinek + + PR middle-end/89137 + * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid + bogus clang warning. + 2019-01-31 Uroš Bizjak PR target/89071 diff --git a/gcc/omp-low.c b/gcc/omp-low.c index 1043b6b806c..61f2f5e3d25 100644 --- a/gcc/omp-low.c +++ b/gcc/omp-low.c @@ -7132,7 +7132,7 @@ lower_omp_task_reductions (omp_context *ctx, enum tree_code code, tree clauses, lab3 = create_artificial_label (UNKNOWN_LOCATION); if (code == OMP_FOR) c = gimple_omp_for_clauses (ctx->stmt); - else if (code == OMP_SECTIONS) + else /* if (code == OMP_SECTIONS) */ c = gimple_omp_sections_clauses (ctx->stmt); c = OMP_CLAUSE_DECL (omp_find_clause (c, OMP_CLAUSE__REDUCTEMP_)); cancellable = c;