8sa1-gcc/gcc/analyzer
David Malcolm be6c485b24 analyzer: fix false leak reports when merging states [PR97074]
gcc/analyzer/ChangeLog:
	PR analyzer/97074
	* store.cc (binding_cluster::can_merge_p): Add "out_store" param
	and pass to calls to binding_cluster::make_unknown_relative_to.
	(binding_cluster::make_unknown_relative_to): Add "out_store"
	param.  Use it to mark base regions that are pointed to by
	pointers that become unknown as having escaped.
	(store::can_merge_p): Pass out_store to
	binding_cluster::can_merge_p.
	* store.h (binding_cluster::can_merge_p): Add "out_store" param.
	(binding_cluster::make_unknown_relative_to): Likewise.
	* svalue.cc (region_svalue::implicitly_live_p): New vfunc.
	* svalue.h (region_svalue::implicitly_live_p): New vfunc decl.

gcc/testsuite/ChangeLog:
	PR analyzer/97074
	* gcc.dg/analyzer/pr97074.c: New test.
2021-01-06 21:44:07 -05:00
..
analysis-plan.cc
analysis-plan.h
analyzer-logging.cc
analyzer-logging.h
analyzer-pass.cc
analyzer-selftests.cc
analyzer-selftests.h
analyzer.cc
analyzer.h
analyzer.opt
bar-chart.cc
bar-chart.h
call-string.cc
call-string.h
ChangeLog Daily bump. 2021-01-07 00:16:19 +00:00
checker-path.cc
checker-path.h
complexity.cc
complexity.h
constraint-manager.cc
constraint-manager.h
diagnostic-manager.cc
diagnostic-manager.h
engine.cc analyzer: fix missing bitmap_clear [PR98564] 2021-01-06 21:42:56 -05:00
engine.h
exploded-graph.h
function-set.cc
function-set.h
pending-diagnostic.cc
pending-diagnostic.h
program-point.cc
program-point.h
program-state.cc
program-state.h
reachability.h
region-model-impl-calls.cc
region-model-manager.cc
region-model-reachability.cc analyzer: fix false leaks when writing through unknown ptrs [PR97072] 2021-01-05 20:54:50 -05:00
region-model-reachability.h
region-model.cc
region-model.h
region.cc
region.h
sm-file.cc
sm-malloc.cc
sm-malloc.dot
sm-pattern-test.cc
sm-sensitive.cc
sm-signal.cc
sm-taint.cc
sm.cc
sm.h
state-purge.cc
state-purge.h
store.cc analyzer: fix false leak reports when merging states [PR97074] 2021-01-06 21:44:07 -05:00
store.h analyzer: fix false leak reports when merging states [PR97074] 2021-01-06 21:44:07 -05:00
supergraph.cc
supergraph.h
svalue.cc analyzer: fix false leak reports when merging states [PR97074] 2021-01-06 21:44:07 -05:00
svalue.h analyzer: fix false leak reports when merging states [PR97074] 2021-01-06 21:44:07 -05:00