[PING,v5,0/4] __builtin_dynamic_object_size
Message ID | b3322241-adf3-8129-5ecc-3f352cb09b0e@gotplt.org |
---|---|
Headers |
Return-Path: <gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 6DA1F385842D for <patchwork@sourceware.org>; Tue, 4 Jan 2022 03:25:51 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from beige.elm.relay.mailchannels.net (beige.elm.relay.mailchannels.net [23.83.212.16]) by sourceware.org (Postfix) with ESMTPS id BC0F83858426 for <gcc-patches@gcc.gnu.org>; Tue, 4 Jan 2022 03:24:34 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org BC0F83858426 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=gotplt.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gotplt.org X-Sender-Id: dreamhost|x-authsender|siddhesh@gotplt.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 5260F620EF8; Tue, 4 Jan 2022 03:24:33 +0000 (UTC) Received: from pdx1-sub0-mail-a306.dreamhost.com (unknown [127.0.0.6]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id F1725620F17; Tue, 4 Jan 2022 03:24:32 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|siddhesh@gotplt.org Received: from pdx1-sub0-mail-a306.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.100.11.97 (trex/6.4.3); Tue, 04 Jan 2022 03:24:33 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|siddhesh@gotplt.org X-MailChannels-Auth-Id: dreamhost X-Chief-Company: 57d098a6388f5da1_1641266673221_2184991081 X-MC-Loop-Signature: 1641266673221:3697113858 X-MC-Ingress-Time: 1641266673220 Received: from [192.168.1.174] (unknown [1.186.123.58]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: siddhesh@gotplt.org) by pdx1-sub0-mail-a306.dreamhost.com (Postfix) with ESMTPSA id 4JSdJb4wntz3F; Mon, 3 Jan 2022 19:24:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gotplt.org; s=gotplt.org; t=1641266672; bh=iNH7FnaTUIE2DmDzfmkq9oXCa6A=; h=Date:Subject:From:To:Cc:Content-Type:Content-Transfer-Encoding; b=IYJIOtsogsxCozOH32G7h+RfcKe2uOZ5H4cX2Ijd/icORVyegngeh6x3PLnAOOcJw DhCUBZHp/n2IQUEbMa0kFqEascQSzFYmegzbGUCW4Z9ylqjn1wV1WiH/CiuWTzozkO uzPO4pCCp6ddmVKnh6AH5VlL7zygaQ9KgbtmvFSI= Message-ID: <b3322241-adf3-8129-5ecc-3f352cb09b0e@gotplt.org> Date: Tue, 4 Jan 2022 08:54:26 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.4.0 Subject: [PING][PATCH v5 0/4] __builtin_dynamic_object_size Content-Language: en-US From: Siddhesh Poyarekar <siddhesh@gotplt.org> To: gcc-patches@gcc.gnu.org References: <20211109190137.1107736-1-siddhesh@gotplt.org> <20211218123511.139456-1-siddhesh@gotplt.org> In-Reply-To: <20211218123511.139456-1-siddhesh@gotplt.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3030.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_BARRACUDACENTRAL, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H5, RCVD_IN_MSPIKE_WL, RCVD_IN_SBL, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) 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 <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> Cc: jakub@redhat.com Errors-To: gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org Sender: "Gcc-patches" <gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org> |
Message
Siddhesh Poyarekar
Jan. 4, 2022, 3:24 a.m. UTC
Happy new year, and ping! On 12/18/21 18:05, Siddhesh Poyarekar wrote: > This patchset enhances the __builtin_dynamic_object_size builtin to > produce dynamic expressions for object sizes to improve coverage of > _FORTIFY_SOURCE. > > Testing: > -------- > > This series has been tested with build and test for i686, bootstrap with > ubsan and full bootstrap and test with x86_64. I also tested the > toolchain with a glibc build and testsuite run for x86_64 and i686 with > _FORTIFY_SOURCE=3 enabled for gcc12. > > Additional testing plans (i.e. I've already started to do some of this): > > - Build packages to compare values returned by __builtin_object_size > with the older pass and this new one. Also compare with > __builtin_dynamic_object_size. > > - Expand the list of packages to get more coverage metrics. > > - Explore performance impact on applications on building with > _FORTIFY_SOURCE=3. > > Siddhesh Poyarekar (4): > tree-object-size: Support dynamic sizes in conditions > tree-object-size: Handle function parameters > tree-object-size: Handle GIMPLE_CALL > tree-object-size: Dynamic sizes for ADDR_EXPR > > gcc/builtins.c | 6 +- > .../gcc.dg/builtin-dynamic-object-size-0.c | 495 +++++++++++++ > .../gcc.dg/builtin-dynamic-object-size-10.c | 2 + > .../builtin-dynamic-object-size-5-main.c | 32 + > .../gcc.dg/builtin-dynamic-object-size-5.c | 7 +- > gcc/testsuite/gcc.dg/builtin-object-size-1.c | 154 +++- > gcc/testsuite/gcc.dg/builtin-object-size-2.c | 133 ++++ > gcc/testsuite/gcc.dg/builtin-object-size-3.c | 151 ++++ > gcc/testsuite/gcc.dg/builtin-object-size-4.c | 93 +++ > gcc/testsuite/gcc.dg/builtin-object-size-5.c | 22 +- > gcc/tree-object-size.c | 670 +++++++++++++++--- > 11 files changed, 1677 insertions(+), 88 deletions(-) > create mode 100644 gcc/testsuite/gcc.dg/builtin-dynamic-object-size-0.c > create mode 100644 gcc/testsuite/gcc.dg/builtin-dynamic-object-size-5-main.c >