[PATCH] D64356: [OPENMP]Initial fix PR42392: Improve -Wuninitialized warnings for OpenMP programs.
Alexey Bataev via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jul 8 11:34:15 PDT 2019
ABataev created this revision.
ABataev added reviewers: NoQ, Szelethus, dcoughlin, xazax.hun, a.sidorin, george.karpenkov, szepet.
Herald added subscribers: jdoerfert, jfb, guansong, rnkovacs.
Herald added a project: clang.
Some OpenMP clauses rely on the values of the variables. If the variable
is not initialized and used in OpenMP clauses that depend on the
variables values, it should be reported that the uninitialized variable
is used in the OpenMP clause expression.
This patch adds initial processing for uninitialized variables in OpenMP
constructs. Currently, it checks for use of the uninitialized variables
in the structured blocks.
Repository:
rC Clang
https://reviews.llvm.org/D64356
Files:
include/clang/AST/StmtOpenMP.h
lib/AST/StmtOpenMP.cpp
lib/Analysis/CFG.cpp
lib/Analysis/UninitializedValues.cpp
test/OpenMP/atomic_messages.c
test/OpenMP/critical_messages.cpp
test/OpenMP/distribute_parallel_for_messages.cpp
test/OpenMP/distribute_parallel_for_simd_misc_messages.c
test/OpenMP/distribute_simd_misc_messages.c
test/OpenMP/for_misc_messages.c
test/OpenMP/for_simd_misc_messages.c
test/OpenMP/master_messages.cpp
test/OpenMP/ordered_messages.cpp
test/OpenMP/parallel_for_messages.cpp
test/OpenMP/parallel_for_simd_messages.cpp
test/OpenMP/parallel_messages.cpp
test/OpenMP/parallel_sections_messages.cpp
test/OpenMP/sections_misc_messages.c
test/OpenMP/simd_misc_messages.c
test/OpenMP/single_misc_messages.c
test/OpenMP/target_depend_messages.cpp
test/OpenMP/target_parallel_for_messages.cpp
test/OpenMP/target_parallel_for_simd_messages.cpp
test/OpenMP/target_parallel_messages.cpp
test/OpenMP/target_simd_messages.cpp
test/OpenMP/target_teams_distribute_messages.cpp
test/OpenMP/target_teams_distribute_parallel_for_messages.cpp
test/OpenMP/target_teams_distribute_parallel_for_simd_messages.cpp
test/OpenMP/target_teams_distribute_simd_messages.cpp
test/OpenMP/target_teams_messages.cpp
test/OpenMP/target_update_messages.cpp
test/OpenMP/task_messages.cpp
test/OpenMP/taskgroup_messages.cpp
test/OpenMP/taskloop_misc_messages.c
test/OpenMP/taskloop_simd_misc_messages.c
test/OpenMP/teams_distribute_parallel_for_messages.cpp
test/OpenMP/teams_distribute_parallel_for_simd_messages.cpp
test/OpenMP/teams_distribute_simd_messages.cpp
test/OpenMP/teams_messages.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D64356.208467.patch
Type: text/x-patch
Size: 27027 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190708/12f1475b/attachment-0001.bin>
More information about the cfe-commits
mailing list