From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) by sourceware.org (Postfix) with ESMTP id 796F7386F424 for ; Mon, 18 Jan 2021 14:26:20 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 796F7386F424 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-146-7WYzXb42OeuU0up6onbggA-1; Mon, 18 Jan 2021 09:26:16 -0500 X-MC-Unique: 7WYzXb42OeuU0up6onbggA-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 878DF180A096; Mon, 18 Jan 2021 14:26:14 +0000 (UTC) Received: from ovpn-112-159.phx2.redhat.com (ovpn-112-159.phx2.redhat.com [10.3.112.159]) by smtp.corp.redhat.com (Postfix) with ESMTP id 1C10D100239F; Mon, 18 Jan 2021 14:26:14 +0000 (UTC) Message-ID: <16325fef8898ca030ce3386e3a41efa8752bef50.camel@redhat.com> Subject: Re: [PATCH] analyzer: use "malloc" attribute From: David Malcolm To: Richard Biener Cc: gcc-patches@gcc.gnu.org, Jakub Jelinek Date: Mon, 18 Jan 2021 09:26:13 -0500 In-Reply-To: References: <20210118024946.4172507-1-dmalcolm@redhat.com> User-Agent: Evolution 3.36.5 (3.36.5-1.fc32) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.9 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, KAM_SHORT, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Jan 2021 14:26:22 -0000 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.