From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dormouse.elm.relay.mailchannels.net (dormouse.elm.relay.mailchannels.net [23.83.212.50]) by sourceware.org (Postfix) with ESMTPS id D31C73858C78 for ; Wed, 2 Nov 2022 22:30:05 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org D31C73858C78 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 A2DA982237B; Wed, 2 Nov 2022 22:30:03 +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 39BE982234E; Wed, 2 Nov 2022 22:30:03 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1667428203; a=rsa-sha256; cv=none; b=voELrrk2g3qtsNuaLZ4au/3oexbvZrFIwz7F16TtR8DSVezRr+O2OMovwMzCKw8JBms5ig adcc4Vpqtpo0K3wcONOh26K/q8EZBfVnmyamLYfT1z7Qrr49iTYAEPiAGXhWmKYON5kKDB NU4zKIUqaCvPoXu0DxdCylQIHeOcUygvJQiSHne+X30ksFYY7KDqXe34imOvFZ27juKB2h jEX3hnVw6f7zsRuEkkYhbzAI9kcN1HRcJUMO1UuXn56dPgWiDBs/9MSPMLzhpxPl8x11qW QsfKMmvOq9oNV1x5PtE21cK+emZMebdA3WMjlXIirULhqEYLnn95x1dzPrA/6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1667428203; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=lJEOhyIBIlywocNUh04Zporb5P8iJYHI6WanErOZbSM=; b=PKqNmRlI+KFHW96bViux5XAT/T7ZKGnFP16wn+GSRnM29fqH2SeKXQxqzo7oiRxWC/uRJD a4ZOccoSi2qkIFlt9LknqAmXOuSA2iK/kGp/Y6DuUSHbXxSdgXLrIVNquzGICEbIywdK+F cheL5rincLzrVY+oQovInG2nAou6PzCT7Ma8H91/3Q6g+Zen8OMw2fs7tnSBat6zsvilnm ccJ77IKHxzcD+FsrqOWkDRMBHxkjH1vFwTO0xtxuaov/9CumAxOwqH0sVXi2M1A5F2e59H oqlfugi0DNwqttF5LnIAVQCg+ZhQOXwl5xf0Hy6iTdaabyEnGc0uRenYCCzLKQ== ARC-Authentication-Results: i=1; rspamd-7b8dfb6d4c-d4896; auth=pass smtp.auth=dreamhost smtp.mailfrom=siddhesh@gotplt.org X-Sender-Id: dreamhost|x-authsender|siddhesh@gotplt.org X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|siddhesh@gotplt.org X-MailChannels-Auth-Id: dreamhost X-White-Cellar: 3719bc8a5de150ab_1667428203467_4188847710 X-MC-Loop-Signature: 1667428203467:439047872 X-MC-Ingress-Time: 1667428203467 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.97.48.72 (trex/6.7.1); Wed, 02 Nov 2022 22:30:03 +0000 Received: from [192.168.0.182] (bras-vprn-toroon4834w-lp130-15-184-147-71-211.dsl.bell.ca [184.147.71.211]) (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 4N2hQy41brzHZ; Wed, 2 Nov 2022 15:30:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gotplt.org; s=dreamhost; t=1667428202; bh=lJEOhyIBIlywocNUh04Zporb5P8iJYHI6WanErOZbSM=; h=Date:Subject:To:Cc:From:Content-Type:Content-Transfer-Encoding; b=wH78Kk+qcyuEaCPT2P8wxkgOc7ac62w9zWdbRi4Fli5G7tgrBNWFnWYxYt/QLuH7C 0L2MCw6/WdUmTAS71EvnS0ZqIN2K2mc0bahqkrHbjfqnR5OZ21u2mEhnKBQUM8xtz/ tUBvX2YkBVCVZjZPL3eM6srAMj+jSxFLQCzKAIteJ2lyDiZsAc5oawknrzVZCI2nkb 1/W+NiMJWgoNC/kB2oRfZOm/uBdmxHAkfBePe/1s0CZY2DP1ZyLoTnjstfFmJX0oM3 o3ubzEq63wvQmp73XOguwbqeejUfqXaW5HZURoK+I+8JKGuD9Vsy+dgVZCHJtlIX3K /r5oTjJBpu9ig== Message-ID: Date: Wed, 2 Nov 2022 18:30:00 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.0 Subject: Re: [PATCH] tree-object-size: Support strndup and strdup Content-Language: en-US To: Jakub Jelinek Cc: gcc-patches@gcc.gnu.org References: <20220815192311.763473-1-siddhesh@gotplt.org> From: Siddhesh Poyarekar In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3031.2 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On 2022-09-23 09:02, Jakub Jelinek wrote: >> Oh, so can addr_object_size be simplified to use get_base_address too? > > You can try. As you can see in get_base_address, that function > handles something that the above doesn't (looking through some MEM_REFs too). > I went down this rabbithole and it actually simplifies some cases but got sucked into flex array related issues that I need more time to figure out. I'll stick to using get_base_address for now since I want to make sure this makes the stage 1 deadline. Thanks, Sid