aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcov-io.cc
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2022-04-25 10:46:16 +0200
committerRichard Biener <rguenther@suse.de>2022-04-27 12:03:07 +0200
commit9aaaae7edb781867797d0a553a7db99d52ecd5e1 (patch)
tree31b7f5aef1f0ff13e4d619f74b9a00a3bf230710 /gcc/gcov-io.cc
parent6a460a2007dd9c527c5f9d5bbbedb852db7c1373 (diff)
downloadgcc-9aaaae7edb781867797d0a553a7db99d52ecd5e1.zip
gcc-9aaaae7edb781867797d0a553a7db99d52ecd5e1.tar.gz
gcc-9aaaae7edb781867797d0a553a7db99d52ecd5e1.tar.bz2
middle-end/104492 - avoid all equality compare dangling pointer diags
The following extends the equality compare dangling pointer diagnostics suppression for uses following free or realloc to also cover those following invalidation of auto variables via CLOBBERs. That avoids diagnosing idioms like return std::find(std::begin(candidates), std::end(candidates), s) != std::end(candidates); for auto candidates which are prone to forwarding of the final comparison across the storage invalidation as then seen by the late run access warning pass. 2022-04-25 Richard Biener <rguenther@suse.de> PR middle-end/104492 * gimple-ssa-warn-access.cc (pass_waccess::warn_invalid_pointer): Exclude equality compare diagnostics for all kind of invalidations. (pass_waccess::check_dangling_uses): Fix post-dominator query. (pass_waccess::check_pointer_uses): Likewise.
Diffstat (limited to 'gcc/gcov-io.cc')
0 files changed, 0 insertions, 0 deletions