https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101980

--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Ankur saini <arse...@gcc.gnu.org>:

https://gcc.gnu.org/g:e92d0ff6b5e6d4b95c04fc3e326d40efeb136086

commit r12-3052-ge92d0ff6b5e6d4b95c04fc3e326d40efeb136086
Author: Ankur Saini <arse...@sourceware.org>
Date:   Thu Aug 19 19:54:56 2021 +0530

    analyzer: Fix PR analyzer/101980

    2021-08-19  Ankur Saini  <arse...@sourceware.org>

    gcc/analyzer/ChangeLog:
            PR analyzer/101980
            * diagnostic-manager.cc
            (diagnostic_manager::prune_for_sm_diagnostic)<case EK_CALL_EDGE>:
Use
            caller_model only when the supergraph_edge doesn't exixt.
            (diagnostic_manager::prune_for_sm_diagnostic)<case EK_RETURN_EDGE>:
            Likewise.
            * engine.cc (exploded_graph::create_dynamic_call): Rename to...
            (exploded_graph::maybe_create_dynamic_call): ...this, return call
            creation status.
            (exploded_graph::process_node): Handle calls which were not
dynamically
            discovered.
            * exploded-graph.h (exploded_graph::create_dynamic_call): Rename
to...
            (exploded_graph::maybe_create_dynamic_call): ...this.
            * region-model.cc (region_model::update_for_gcall): New param, use
it
            to push call to frame.
            (region_model::update_for_call_superedge): Pass callee function to
            update_for_gcall.
            * region-model.h (region_model::update_for_gcall): New param.

    gcc/testsuite/ChangeLog:
            PR analyzer/101980
            * gcc.dg/analyzer/function-ptr-2.c : Add issue for double 'free'.
            * gcc.dg/analyzer/malloc-callbacks.c : Fix xfail testcase.

Reply via email to