public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Richard Guenther <richard.guenther@gmail.com>
To: Diego Novillo <dnovillo@google.com>
Cc: Andrew Pinski <pinskia@gmail.com>,
	Delesley Hutchins <delesley@google.com>, gcc <gcc@gcc.gnu.org>,
		Ollie Wild <aaw@google.com>, Le-Chun Wu <lcwu@google.com>
Subject: Re: Announce - Thread safety annotations no longer supported in GCC
Date: Fri, 20 Apr 2012 08:50:00 -0000	[thread overview]
Message-ID: <CAFiYyc2yuVOkFtipU=oVYkVaSyGfEM6=pftXLMyz0+AR+FztjQ@mail.gmail.com> (raw)
In-Reply-To: <4F90738D.5080302@google.com>

On Thu, Apr 19, 2012 at 10:20 PM, Diego Novillo <dnovillo@google.com> wrote:
> On 4/19/12 4:14 PM, Andrew Pinski wrote:
>
>> How do you know it is a major effort?  Has any issues related to
>> changing Tuple/front-ends AST been raised to the mailing list and
>> asked for help on how to implement these changes?
>
>
> The kind of analysis that Annotalysis needs cannot be catered by GIMPLE, the
> same way that LLVM's bitcode could not cater to it.  Both representations
> are geared towards code transformations, not source code analysis.  It's not
> an implementation issue, but a design one.  It simply does not make sense
> for GIMPLE or LLVM's bitcode to try to be a source code analysis framework.
>
> Annotalysis needs a high-fidelity representation of the original source
> code.  Today, that high-fidelity representation is provided exclusively by
> Clang.
>
> Additionally, we are already supporting Clang as a front end to provide
> syntax and semantic analysis.  Given that Clang provides a much more
> flexible framework for static analysis, the decision was a relatively simple
> one.
>
> This is not to say that Clang provides everything needed by Annotalysis.
>  There is some need to use dataflow information which needs to be
> incorporated in Clang.  However, a large fraction of the support required
> was already available in Clang.

Our high-level AST is language specific.  In case of C++ its GENERIC plus
some C++ specific tree codes.  There is no framework for building a CFG
on top of that (not sure if you need that), but the cgraph is built over that
representation.

Of course non-optimizing ASTs will limit static analysis to TU scope, even
with clang?  Or does clang support a "LTO" source AST?

Richard.

>
> Diego.

  parent reply	other threads:[~2012-04-20  8:50 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CAFOgFcSO9NRXprgW+LxkcOCjttzGZiqyugwbLPbrLpQUqMkmHA@mail.gmail.com>
2012-04-19 14:15 ` Diego Novillo
2012-04-19 15:15   ` Andrew Pinski
2012-04-19 15:44     ` Delesley Hutchins
2012-04-19 16:25       ` Andrew Pinski
2012-04-19 17:30         ` Delesley Hutchins
2012-04-19 19:15           ` Andrew Pinski
2012-04-19 20:20             ` Diego Novillo
2012-04-19 21:10               ` Delesley Hutchins
2012-04-20  8:50               ` Richard Guenther [this message]
2012-04-19 20:55             ` Delesley Hutchins
2012-04-20  2:31           ` Miles Bader
2012-04-20 17:55             ` Delesley Hutchins
2012-04-20 15:40 Manuel López-Ibáñez

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='CAFiYyc2yuVOkFtipU=oVYkVaSyGfEM6=pftXLMyz0+AR+FztjQ@mail.gmail.com' \
    --to=richard.guenther@gmail.com \
    --cc=aaw@google.com \
    --cc=delesley@google.com \
    --cc=dnovillo@google.com \
    --cc=gcc@gcc.gnu.org \
    --cc=lcwu@google.com \
    --cc=pinskia@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).