From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from cross.elm.relay.mailchannels.net (cross.elm.relay.mailchannels.net [23.83.212.46]) by sourceware.org (Postfix) with ESMTPS id 949CD3858D33 for ; Tue, 7 Feb 2023 15:28:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 949CD3858D33 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 50F3B26199F; Tue, 7 Feb 2023 15:28:56 +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 76EC52610FF; Tue, 7 Feb 2023 15:28:54 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1675783735; a=rsa-sha256; cv=none; b=zZbGkCnZId1IGL60TIAt1izHkiMR+iu3Vh+w1f+CO3cUep50kXey6caBdl8G8jw8ACVgKy kueO21t/V+C8wvXBT1k4zoIyRRzP1cWLTmBo/IfPGaU59HrnTTZfyEbPutbJuAkoUyhkT8 c11iB6fTNBViDqUInNIqI/6RijvVjI6R857lip2FXfNcadrh2ZqGDH9/LSQk7LBJlBh4be 7HZxoawt/W8cAcjvd+p0kR56IRYGVDbMCVitW2yADz29rekm4iyUZws06ophozyWivpios FzVP5oVJxeii06FiDCUHtzp2h15BpsWSfsZ8MOFcgLbfK9hbYfeMBzv/l80xiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1675783735; 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=Ur4/HBUlz/iXz4R5ptIenhbaAnBGPC8lJsySbgFEK+I=; b=aV7icQbdr4pjHfFPLdDlz+KmM2ixIyPhQTHTnd55gypwSynug+773nBWYeHTP67V+5tcJ2 fql7rhbyzglc2o3AGp6LM5f3BASRsc78zRimoDrO7tlafDJJ3sPkGgg21B70Wie3EigGMj sysxHeFXaFbpGXlirssvSJnDHhdThZgYOv1ig3X8AdpNeHa8H3EPLAQWAyyCrrHcUeWeCN wEMQJbDFUuaw8JScStSff0aFkL1ixn7v6zmvi4GIGb7bNnNVF4TXibrVX6Ux2aEABEY4K5 9Hz1RB3qbcxj1eBJByhmoC9PTUAvE/VtJHu/FrnwdOezptL8gTguGv7DaIwDKw== ARC-Authentication-Results: i=1; rspamd-8d84bcd9f-gs5dd; 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-Wiry-Relation: 3684426527e24810_1675783736031_225804194 X-MC-Loop-Signature: 1675783736031:3177708784 X-MC-Ingress-Time: 1675783736030 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.109.138.61 (trex/6.7.1); Tue, 07 Feb 2023 15:28:56 +0000 Received: from [192.168.0.182] (bras-vprn-toroon4834w-lp130-07-174-93-43-36.dsl.bell.ca [174.93.43.36]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: siddhesh@gotplt.org) by pdx1-sub0-mail-a306.dreamhost.com (Postfix) with ESMTPSA id 4PB6VF2XLqz1c; Tue, 7 Feb 2023 07:28:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gotplt.org; s=dreamhost; t=1675783734; bh=Ur4/HBUlz/iXz4R5ptIenhbaAnBGPC8lJsySbgFEK+I=; h=Date:Subject:To:Cc:From:Content-Type:Content-Transfer-Encoding; b=E/2fJ10T7Z4eHJM7YP0d702FZViR8RVIlLDyel+zFqk7CJYs+NvMhBFLtrS92eNO3 BfBxuqByk3ExnouF8KZlaiRC3JEa4P7bZnsBFhA7grJ7rgTsVhgUgFrTGBw0BerHk+ UCe+s41+vB8nW6QOfSmsMLN53+cbXKCU8tM1Z+uA00u88UVjGBk6CHhiWJ2FoyiUCh 11RMSowjC4abPsQhuK2nGrdvGsKliFqVsVmnFmh1BEt6a8cAceZdmNKGA8JfcDxTr7 nukKc51ZicWvICFwOHpQ++s5s4qjgVYQtfJyQOfGxS21Is7JLSwU66tAFLALNI8glc MGmV5Qc5HlNxA== Message-ID: <1ff013ea-cd59-28d8-bcf0-aafc771defb2@gotplt.org> Date: Tue, 7 Feb 2023 10:28:51 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.0 Subject: Re: [PATCH 1/2] Handle component_ref to a structre/union field including flexible array member [PR101832] Content-Language: en-US To: Joseph Myers , Qing Zhao Cc: Richard Biener , "gcc-patches@gcc.gnu.org" , "keescook@chromium.org" , fberat@redhat.com References: <20230131141140.3610133-1-qing.zhao@oracle.com> <20230131141140.3610133-2-qing.zhao@oracle.com> <812910BC-870E-4432-870D-538024F1A510@oracle.com> <3B30CFBF-5004-41A4-940D-1F23C010403B@oracle.com> <4E515AA5-2069-497E-A301-EC8ED744E780@oracle.com> 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.7 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 2023-02-06 18:14, Joseph Myers wrote: > On Mon, 6 Feb 2023, Qing Zhao via Gcc-patches wrote: > >> In GCC14: >> >> 1. Include this new warning -Wgnu-varaible-sized-type-not-at-end to -Wall >> 2. Deprecate this extension from GCC. (Or delay this to next release?). > > Any deprecation, or inclusion in -Wall, would best come with evidence > about the prevalance of use (possibly unintentional, probably undesirable) > of these extensions. For example, maybe someone could do a distribution > rebuild with a patch to enable these warnings and report the results? FWIW, Fred from our team has been working on a mass prebuilder that can be used for this kind of distribution-wide validation. I've used it for _FORTIFY_SOURCE validation as well as coverage analysis. I can help you with this Qing, once you have a patch ready. Sid [1] https://gitlab.com/fedora/packager-tools/mass-prebuild/