public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug analyzer/97114] New: Support for vfuncs in -fanalyzer
@ 2020-09-18 14:12 dmalcolm at gcc dot gnu.org
  2020-09-18 14:29 ` [Bug analyzer/97114] " dmalcolm at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: dmalcolm at gcc dot gnu.org @ 2020-09-18 14:12 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 97114
           Summary: Support for vfuncs in -fanalyzer
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: analyzer
          Assignee: dmalcolm at gcc dot gnu.org
          Reporter: dmalcolm at gcc dot gnu.org
            Blocks: 97110
  Target Milestone: ---

(Similar to PR analyzer/97113 which covers RTTI in general)

-fanalyzer doesn't yet "know about" virtual functions; it probably ought to be
able to devirtualization calls, or speculate about likely calls.

Probably need to reuse/refactor logic in ipa-devirt.c for this.

(Filing this as part of the -fanalyzer C++ tracker bug)


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97110
[Bug 97110] [meta-bug] tracker bug for supporting C++ in -fanalyzer

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug analyzer/97114] Support for vfuncs in -fanalyzer
  2020-09-18 14:12 [Bug analyzer/97114] New: Support for vfuncs in -fanalyzer dmalcolm at gcc dot gnu.org
@ 2020-09-18 14:29 ` dmalcolm at gcc dot gnu.org
  2021-08-18 17:41 ` cvs-commit at gcc dot gnu.org
  2022-02-15 22:05 ` jamborm at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: dmalcolm at gcc dot gnu.org @ 2020-09-18 14:29 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
There may also be some precision-of-wording issues here, when describing the
chain of events in a diagnostic path.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug analyzer/97114] Support for vfuncs in -fanalyzer
  2020-09-18 14:12 [Bug analyzer/97114] New: Support for vfuncs in -fanalyzer dmalcolm at gcc dot gnu.org
  2020-09-18 14:29 ` [Bug analyzer/97114] " dmalcolm at gcc dot gnu.org
@ 2021-08-18 17:41 ` cvs-commit at gcc dot gnu.org
  2022-02-15 22:05 ` jamborm at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-08-18 17:41 UTC (permalink / raw)
  To: gcc-bugs

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

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

https://gcc.gnu.org/g:1b34248527472496ca3fe2a07183beac8cf69041

commit r12-3003-g1b34248527472496ca3fe2a07183beac8cf69041
Author: Ankur Saini <arsenic@sourceware.org>
Date:   Sun Aug 15 19:19:07 2021 +0530

    analyzer: detect and analyze virtual function calls

    2021-08-15  Ankur Saini  <arsenic@sourceware.org>

    gcc/analyzer/ChangeLog:
            PR analyzer/97114
            * region-model.cc (region_model::get_rvalue_1): Add case for
            OBJ_TYPE_REF.

    gcc/testsuite/ChangeLog:
            PR analyzer/97114
            * g++.dg/analyzer/vfunc-2.C: New test.
            * g++.dg/analyzer/vfunc-3.C: New test.
            * g++.dg/analyzer/vfunc-4.C: New test.
            * g++.dg/analyzer/vfunc-5.C: New test.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug analyzer/97114] Support for vfuncs in -fanalyzer
  2020-09-18 14:12 [Bug analyzer/97114] New: Support for vfuncs in -fanalyzer dmalcolm at gcc dot gnu.org
  2020-09-18 14:29 ` [Bug analyzer/97114] " dmalcolm at gcc dot gnu.org
  2021-08-18 17:41 ` cvs-commit at gcc dot gnu.org
@ 2022-02-15 22:05 ` jamborm at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: jamborm at gcc dot gnu.org @ 2022-02-15 22:05 UTC (permalink / raw)
  To: gcc-bugs

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

Martin Jambor <jamborm at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jamborm at gcc dot gnu.org

--- Comment #3 from Martin Jambor <jamborm at gcc dot gnu.org> ---
Should this be marked as fixed?

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-02-15 22:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-18 14:12 [Bug analyzer/97114] New: Support for vfuncs in -fanalyzer dmalcolm at gcc dot gnu.org
2020-09-18 14:29 ` [Bug analyzer/97114] " dmalcolm at gcc dot gnu.org
2021-08-18 17:41 ` cvs-commit at gcc dot gnu.org
2022-02-15 22:05 ` jamborm at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).