Re: [PATCH 00/49] RFC: Add a static analysis framework to GCC

2019-12-16 Thread David Malcolm
On Tue, 2019-12-03 at 18:17 +0100, Jakub Jelinek wrote: > On Tue, Dec 03, 2019 at 11:52:13AM -0500, David Malcolm wrote: > > > > Our plugin "interface" as such is very broad. > > > > > > Just to sneak in here I don't like exposing our current plugin > > > "non- > > > API" > > > more. In fact I'd

Re: [PATCH 00/49] RFC: Add a static analysis framework to GCC

2019-12-11 Thread David Malcolm
On Mon, 2019-12-09 at 09:10 +0100, Richard Biener wrote: > On Fri, Dec 6, 2019 at 11:31 PM Jeff Law wrote: > > On Wed, 2019-12-04 at 12:55 -0700, Martin Sebor wrote: > > > On 11/15/19 6:22 PM, David Malcolm wrote: > > > > This patch kit introduces a static analysis pass for GCC that > > > > can >

Re: [PATCH 00/49] RFC: Add a static analysis framework to GCC

2019-12-09 Thread Richard Biener
On Fri, Dec 6, 2019 at 11:31 PM Jeff Law wrote: > > On Wed, 2019-12-04 at 12:55 -0700, Martin Sebor wrote: > > On 11/15/19 6:22 PM, David Malcolm wrote: > > > This patch kit introduces a static analysis pass for GCC that can > > > diagnose > > > various kinds of problems in C code at compile-time

Re: [PATCH 00/49] RFC: Add a static analysis framework to GCC

2019-12-06 Thread Jeff Law
On Wed, 2019-12-04 at 12:55 -0700, Martin Sebor wrote: > On 11/15/19 6:22 PM, David Malcolm wrote: > > This patch kit introduces a static analysis pass for GCC that can > > diagnose > > various kinds of problems in C code at compile-time (e.g. double- > > free, > > use-after-free, etc). > > I have

Re: [PATCH 00/49] RFC: Add a static analysis framework to GCC

2019-12-06 Thread Jeff Law
On Tue, 2019-12-03 at 11:52 -0500, David Malcolm wrote: > On Wed, 2019-11-20 at 11:18 +0100, Richard Biener wrote: > > On Tue, Nov 19, 2019 at 11:02 PM David Malcolm > > > > wrote: > > > > > The checker is implemented as a GCC plugin. > > > > > > > > > > The patch kit adds support for "in-tree" p

Re: [PATCH 00/49] RFC: Add a static analysis framework to GCC

2019-12-04 Thread Martin Sebor
On 11/15/19 6:22 PM, David Malcolm wrote: This patch kit introduces a static analysis pass for GCC that can diagnose various kinds of problems in C code at compile-time (e.g. double-free, use-after-free, etc). I haven't looked at the analyzer bits in any detail yet so I have just some very high

Re: [PATCH 00/49] RFC: Add a static analysis framework to GCC

2019-12-04 Thread Richard Biener
On Tue, Dec 3, 2019 at 5:52 PM David Malcolm wrote: > > On Wed, 2019-11-20 at 11:18 +0100, Richard Biener wrote: > > On Tue, Nov 19, 2019 at 11:02 PM David Malcolm > > wrote: > > > > > The checker is implemented as a GCC plugin. > > > > > > > > > > The patch kit adds support for "in-tree" plugins

Re: [PATCH 00/49] RFC: Add a static analysis framework to GCC

2019-12-03 Thread Jakub Jelinek
On Tue, Dec 03, 2019 at 11:52:13AM -0500, David Malcolm wrote: > > > Our plugin "interface" as such is very broad. > > > > Just to sneak in here I don't like exposing our current plugin "non- > > API" > > more. In fact I'd just build the analyzer into GCC with maybe an > > option to disable its b

Re: [PATCH 00/49] RFC: Add a static analysis framework to GCC

2019-12-03 Thread David Malcolm
On Wed, 2019-11-20 at 11:18 +0100, Richard Biener wrote: > On Tue, Nov 19, 2019 at 11:02 PM David Malcolm > wrote: > > > > The checker is implemented as a GCC plugin. > > > > > > > > The patch kit adds support for "in-tree" plugins i.e. GCC > > > > plugins > > > > that > > > > would live in the G

Re: [PATCH 00/49] RFC: Add a static analysis framework to GCC

2019-12-01 Thread Eric Gallager
On 11/16/19, Thomas Schwinge wrote: > Hi David! > > On 2019-11-15T20:22:47-0500, David Malcolm wrote: >> This patch kit > > (I have not looked at the patches.) ;-) > >> introduces a static analysis pass for GCC that can diagnose >> various kinds of problems in C code at compile-time (e.g. double

Re: [PATCH 00/49] RFC: Add a static analysis framework to GCC

2019-12-01 Thread Eric Gallager
On 11/20/19, Richard Biener wrote: > On Tue, Nov 19, 2019 at 11:02 PM David Malcolm wrote: >> >> > > The checker is implemented as a GCC plugin. >> > > >> > > The patch kit adds support for "in-tree" plugins i.e. GCC plugins >> > > that >> > > would live in the GCC source tree and be shipped as p

Re: [PATCH 00/49] RFC: Add a static analysis framework to GCC

2019-11-20 Thread Richard Biener
On Tue, Nov 19, 2019 at 11:02 PM David Malcolm wrote: > > > > The checker is implemented as a GCC plugin. > > > > > > The patch kit adds support for "in-tree" plugins i.e. GCC plugins > > > that > > > would live in the GCC source tree and be shipped as part of the GCC > > > tarball, > > > with a n

Re: [PATCH 00/49] RFC: Add a static analysis framework to GCC

2019-11-19 Thread David Malcolm
On Sat, 2019-11-16 at 21:42 +0100, Thomas Schwinge wrote: > Hi David! > > On 2019-11-15T20:22:47-0500, David Malcolm > wrote: > > This patch kit > > (I have not looked at the patches.) ;-) > > > introduces a static analysis pass for GCC that can diagnose > > various kinds of problems in C code

Re: [PATCH 00/49] RFC: Add a static analysis framework to GCC

2019-11-16 Thread Thomas Schwinge
Hi David! On 2019-11-15T20:22:47-0500, David Malcolm wrote: > This patch kit (I have not looked at the patches.) ;-) > introduces a static analysis pass for GCC that can diagnose > various kinds of problems in C code at compile-time (e.g. double-free, > use-after-free, etc). Sounds great from

[PATCH 00/49] RFC: Add a static analysis framework to GCC

2019-11-15 Thread David Malcolm
This patch kit introduces a static analysis pass for GCC that can diagnose various kinds of problems in C code at compile-time (e.g. double-free, use-after-free, etc). The analyzer runs as an IPA pass on the gimple SSA representation. It associates state machines with data, with transitions at cer