[PATCH] analyzer: use "malloc" attribute

David Malcolm dmalcolm@redhat.com
Mon Jan 18 14:26:13 GMT 2021


On Mon, 2021-01-18 at 14:26 +0100, Richard Biener wrote:
> On Sun, 17 Jan 2021, David Malcolm wrote:
> 
> > This is an updated version of this patch from October:
> > 
> >   'RFC: add "deallocated_by" attribute for use by analyzer'
> >     
> > https://gcc.gnu.org/pipermail/gcc-patches/2020-October/555544.html
> > 
> > reworking it to build on top of Martin's work as noted below,
> > reusing
> > the existing attribute rather than adding a new one.
> > 
> > Successfully bootstrapped & regrtested on x86_64-pc-linux-gnu.
> > Also tested by hand with valgrind.
> > 
> > Apart from a trivial change to attrib.h and to builtins.c, this
> > is confined to the analyzer code and docs.  The original patch was
> > posted in stage 1.  Is this OK for master?  (I'm hoping for
> > release manager permission to commit this code now; it's not
> > clear to me whether the end of stage 3 was on the 16th or is
> > today on the 17th).
> 
> I guess it's still OK if you're quick.
> 
> Richard.

Thanks; pushed as c7e276b869bdeb4a95735c1f037ee1a5f629de3d.




More information about the Gcc-patches mailing list