From 829a433832bd0c4759f5b71e4741b0bf407690c0 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Fri, 1 Feb 2019 00:05:01 +0100 Subject: [PATCH] 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 --- gcc/ChangeLog | 6 ++++++ gcc/omp-low.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) 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; -- 2.30.2