From: David Malcolm <dmalcolm@redhat.com>
To: Saloni Garg <salonigarg24.5@gmail.com>, gcc@gcc.gnu.org
Subject: Re: [GSoC-2021] Interested in project `Extend the static analysis pass`
Date: Thu, 25 Mar 2021 15:17:49 -0400 [thread overview]
Message-ID: <fca66a633e727717419a089e74a1e0479fffddb3.camel@redhat.com> (raw)
In-Reply-To: <CA+V=G+6R3pfezb1pGLv7SJOMjF--Q6h4zhXYTWDoPNBvSDhxTA@mail.gmail.com>
On Thu, 2021-03-25 at 14:52 +0530, Saloni Garg via Gcc wrote:
> Hi all,
> I am an undergraduate student in AMU, Aligarh. I am interested in the
> project* `Extend the static analysis pass`. *I have followed this(
> https://gcc.gnu.org/pipermail/gcc/2021-March/234941.html) and been
> able to
> successfully build and successfully ran and pass the test suite for C
> and
> C++.
>
> I found this sub-project `C++ support (new/delete checking,
> exceptions,
> etc)` interesting and may be the conservative code for this can be
> made
> along the lines of malloc/free implementation in C. I found here(
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94355) that some part of
> it
> has already been implemented . I would like to expand it further and
> learn
> about it, maybe start with writing some test cases, please let me
> know.
>
> Further, I am inclined on this(
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97111). Let me know if
> it is
> still available.
>
> Looking forward to hearing from you guys.
> Thanks,
> Saloni Garg
Hi!
I'm the author/maintainer of the static analysis pass, and would be the
mentor for any GSoC project(s) involving it.
I've already implemented most of the new/delete checking in GCC 11; the
big missing component there is exception-handling.
Implementing exception-handling in the analyzer could make a good GSoC
project: it's non-trivial, but hopefully doable in one summer. I see
you've already seen bug 97111, and there are some links in that bug to
resources. Given that the analyzer runs on the gimple-ssa
representation, by the time it sees the code, much of the exception-
handling has already been translated into calls to various __cxa_-
prefixed functions in the C++ runtime, so part of the work would
involve "teaching" the analyzer about those functions. One way to make
a start on this would be to create a collection of trivial C++ examples
that use exceptions, and then look at analyzer dumps to see what IR is
being "seen" by the analyzer for the various constructs. (I actually
started this a long time ago and have a very crude barely-working
prototype, but it was just the start, and I've forgotten almost all of
it...)
Hope this is helpful
Dave
next prev parent reply other threads:[~2021-03-25 19:18 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-25 9:22 Saloni Garg
2021-03-25 19:17 ` David Malcolm [this message]
2021-03-28 12:36 ` Saloni Garg
2021-03-28 14:32 ` David Malcolm
2021-03-30 10:36 ` Saloni Garg
2021-03-30 13:11 ` David Malcolm
2021-03-31 16:11 ` Saloni Garg
2021-03-31 17:52 ` David Malcolm
2021-04-06 20:29 ` Saloni Garg
2021-04-08 2:48 ` David Malcolm
2021-04-10 15:48 ` Saloni Garg
2021-04-10 18:44 ` David Malcolm
2021-04-11 11:36 ` Saloni Garg
2021-04-12 14:05 ` David Malcolm
2021-04-12 21:10 ` Saloni Garg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=fca66a633e727717419a089e74a1e0479fffddb3.camel@redhat.com \
--to=dmalcolm@redhat.com \
--cc=gcc@gcc.gnu.org \
--cc=salonigarg24.5@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).