From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by sourceware.org (Postfix) with ESMTPS id 89AC2385840D for ; Tue, 23 Apr 2024 19:58:27 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 89AC2385840D Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=oracle.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=oracle.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 89AC2385840D Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=205.220.165.32 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1713902308; cv=pass; b=rt7bcq1HhEhc56PYlKBUnc1OZs6yFdu3VFEScJh5bB/Zf6m6tGaN+tbgAa93eSrumTwwp3mt3UfWzNk/2w3Y3yiDhb9SxfxVzVyfjMwlkWX0M8AXUyXf5555cVAK8OsGWKhM7gEohFYsTCsJK41Ptt/M058O+UXah8AocKAW8A0= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1713902308; c=relaxed/simple; bh=iTPrwh6Zik72v1huW8AxdomLRz7UrY2dCedaWM0yt0M=; h=DKIM-Signature:DKIM-Signature:From:To:Subject:Date:Message-ID: MIME-Version; b=gVTu45kXVozr29Ls5tK2vGfR1DW4tlbxoUhBokglgEzcSx0uyr2hLaJWEPD1D8OxruxnK/J4dCsDkt1WEb2S+IyY+Y3d6lJPusMIdCDE1foP+m1l0SD3WHGwJ1KPfnBv4x6IqZd2Zfx7gOt6BMwOkKqaNs/PNje8yu/OkSBzvvg= ARC-Authentication-Results: i=2; server2.sourceware.org Received: from pps.filterd (m0246617.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 43NJd5K9019322; Tue, 23 Apr 2024 19:58:25 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-id : content-transfer-encoding : mime-version; s=corp-2023-11-20; bh=/WZpn0MzL6kO/vQLux9IPfExA+qyY0T4K8aH8funo84=; b=MRCwRnJefGalaQVXuB0Odt1SDNbb5TFLRXVQHlE+FsxZrmScygWXFgS8fvc8dia4J+ND IATP2qf5BKCduay2KusOI/Mh9xl6uFjfufo9pas/g6b7BCERF8i4CaKhU9/UJEyKmAqr +zKf3kuiZra1DT9aKa5cXOksIVmS2ocBLSsrvQQsY9p/nJKCBoBNG+077N04IAOzf351 ebQWwAi8z35PpDPWXVa4sTf558+On3bz2F3OuO47lp7y+eCaFTiAGMAFYFpbxA7KD7EE 24CqM0J+KiLXL76//TJ9G0buzw71bC7f0iDbZc3/WQMNRikwIqFxX4fmcyZOYw7csVZk kQ== Received: from phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta02.appoci.oracle.com [147.154.114.232]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3xm68veumm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 23 Apr 2024 19:58:25 +0000 Received: from pps.filterd (phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 43NJQndY035602; Tue, 23 Apr 2024 19:58:24 GMT Received: from nam10-dm6-obe.outbound.protection.outlook.com (mail-dm6nam10lp2100.outbound.protection.outlook.com [104.47.58.100]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3xm457t50u-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 23 Apr 2024 19:58:24 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dy9Gshnmj7vbAvq4NLrPueW6+C7FXBasKCRMkvQVZw4fZailoOqM/HtuTT8LVvocrOZRUcgtKwsYUmV+qK4xs+BZuBbvL+YmxAs7QjNIy2rFx4ekdSRbYUNxAISqqjp3u9manichn/UUSHXaUz6IO6EZGaYdBUd4ygowFL6o8T01YZxBqYbhK0tbV/eiu0n3t4yhNrsvliorgKc7mJXsDcBUhTjH1zSTCVGCzKhd8A0ZVrBgw30X22W2ylwJCNksKXXI+LYtO/WqPvylyojhJMcaZ5hSVmQGLjStYFQqN7j0MEYDH2rGNYBIRpdxWpejn639h/S71pKCBZUiEi1jWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=/WZpn0MzL6kO/vQLux9IPfExA+qyY0T4K8aH8funo84=; b=QcDx1jUOKbHmQIWvnNkvWToYDQ5FwOz46wCj1auVP96g4tGPOdkoDHZ7eLzDgu6H+u5WbIsBMOBsb4ezN///hIOit2NkMeDjEPNWkwkHxnT+CapPFw5l31c9k2xHTewLsGnF8El/RtQKEO7yrpsKrFgv8IcC+BNl9ge5AZ3avAvT2rdWvDEfPIw34diPGXR0GOhCrMiiM5IzdII8kzvO3EfI755gWnt0raaE3otHsWew91ZYQk4EVIWt5j5Bm9eOpx5GdUWVeYHBWhgN6e6UR8zGT+eOcTB5hyIpQC7c4A6TRsq7S9QFjFlekIGrH6jaZvj63ruJCTZC9pdYyqWvwQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=/WZpn0MzL6kO/vQLux9IPfExA+qyY0T4K8aH8funo84=; b=ZXMdjViYHZruXObds9+Vcy6qB00gSY/eEYW3YEGbm/HSPehaUGiDI1V1j5NwSUmZBcsFJ3xX1aH7KZSWkTrI+tBqRFW23RkmDyk2nneWFkMgZqoWlBp99hvel3qM4I0+EkseifNGUQJYqdTnCIL+ul5NTe9oOL1wQ9irFjWdftk= Received: from CY8PR10MB6538.namprd10.prod.outlook.com (2603:10b6:930:5a::17) by MW6PR10MB7659.namprd10.prod.outlook.com (2603:10b6:303:246::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7472.44; Tue, 23 Apr 2024 19:58:22 +0000 Received: from CY8PR10MB6538.namprd10.prod.outlook.com ([fe80::2dae:7852:9563:b4bc]) by CY8PR10MB6538.namprd10.prod.outlook.com ([fe80::2dae:7852:9563:b4bc%6]) with mapi id 15.20.7472.044; Tue, 23 Apr 2024 19:58:22 +0000 From: Qing Zhao To: Joseph Myers CC: Richard Biener , "uecker@tugraz.at" , Siddhesh Poyarekar , Kees Cook , "gcc-patches@gcc.gnu.org" Subject: Re: [RFC][PATCH v1 2/4] C and C++ FE changes to support flexible array members in unions and alone in structures. Thread-Topic: [RFC][PATCH v1 2/4] C and C++ FE changes to support flexible array members in unions and alone in structures. Thread-Index: AQHakol4jn61wHDmBEWBvSf52x0U2bF2SieAgAAB6gA= Date: Tue, 23 Apr 2024 19:58:22 +0000 Message-ID: <4DE3CC88-658A-4CB4-8DC8-38D20B7C214A@oracle.com> References: <20240419184317.2138890-1-qing.zhao@oracle.com> <20240419184317.2138890-3-qing.zhao@oracle.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: Apple Mail (2.3774.500.171.1.1) x-ms-publictraffictype: Email x-ms-traffictypediagnostic: CY8PR10MB6538:EE_|MW6PR10MB7659:EE_ x-ms-office365-filtering-correlation-id: 84f9d389-74f4-48b8-8ff4-08dc63cfbaed x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: =?us-ascii?Q?snF91qn4daIcryUXHKfBMTzuEiOG6JDcoqmtkyi5CuV5peOG7No0ADM0EqF2?= =?us-ascii?Q?e9f/mJOV0fIIq1ueMZ5NgKYPcVWxm/G7KmLAIeEx6dn/iaBumVuIszmPUAiL?= =?us-ascii?Q?TcTH3HFnyEcGWZNr523rfcxcI8+bngJYB8mAHsvX/lQdt7+hQyaasuUAHogp?= =?us-ascii?Q?t9X9m5uBvEfyA63VhDpwKiwc0nbxzTMYlwxoYe9SlK1NggEl0iIk+RCzcLw+?= =?us-ascii?Q?ha/z+Go40Pq94ehpYpQGnv1XnBlitPW2i9+nxznuN/dgdmpGQKQFi0QHFOq3?= =?us-ascii?Q?qhjiXV9QQF9WkjVXA6tsXZwQL6+RY+poGuN//Ju35sOAwMkfPe2vmPbJoGt0?= =?us-ascii?Q?aHy7LbV5EgFNRkmKvHoueDywFb4kO7eTH5wIuUhIrJ6/VJSIUqoLIn8QnL3p?= =?us-ascii?Q?sYcdCyHMMTfd20BpuVG7J8kZdahJGemvEkI7cCUhv5ijzU0ESrO9rstrsg45?= =?us-ascii?Q?eQ3ddJJ8/fTp3Ev9nG/uwifmR5NGghNEuaxM82HxeM2gylb0qs7YYQWQNgLV?= =?us-ascii?Q?zzTs843vDJ3ZCBQE62iCTmjg9AORpFINQapN1L91P81ULBio0bqbvkt4Js3X?= =?us-ascii?Q?S/0oa94pjkzMWvnmTzsos1nOvrpdTrFvP8guJuQHRdNP63IVzVpl7X/o6Wqh?= =?us-ascii?Q?N77ZQDkvUKik/CuWcB3rHFSP+B8OM9lceXSbjSGhSJ0SOpMgqBx3rqv0sANk?= =?us-ascii?Q?LBFB+0k1oFEzNpc4I/Nx8gDPFA/aZwMyz/vMvwVwqUzCZ1ZGCXHya4oqHmVB?= =?us-ascii?Q?ZYBaZuFHiaGmpqV9i3hVp7iiJunOSqZyxwkudTD5h3Ih98Gt/DtjQfO62Yy9?= =?us-ascii?Q?mlPt8o5yLMKRhGtm/aM0YSySpQW8fxcVYU3fwIZj83V1AoxySXzprMiRbrV/?= =?us-ascii?Q?w3axaWYYkEJVm6X148Lo63nJKdUDiANLoJEd4WVFLcJibDvSsKrBl056I0de?= =?us-ascii?Q?1YyZfmpIxZDUgx3UIhEktwXpSh+PImGso72yodEjQ16lOgzZ+0E+dkfOy+Kv?= =?us-ascii?Q?4D5mvXM4jAP38hUV8RnNb+8cn1o0ttJHHaU4bkv3QxkfhmFAnXxynrN7QsjL?= =?us-ascii?Q?yKYkspzVXhXI80rEHGURKZoihgfKm1oBew94Z+Ahs8ulA6fh1GaYL8FGGCun?= =?us-ascii?Q?dXscrvnPJkmY0MD5BB1wLbZk9RJPKLXPUAPiEVbOV/yHNO+Uc/AnLo+gRNeH?= =?us-ascii?Q?28ouqxantPCHMJe0MWcp9KWL3skoQthhLuusJUH+6vZFTw+shS4izj99PFKh?= =?us-ascii?Q?1m1hNACHSLyvvfWPAYxx/N9veqHYQSnBPQBoDvvwoqeM+3iXGbWGQWnATeKX?= =?us-ascii?Q?zvCE5tzR7CgcrEQXvlNIVQWZgLErb09rMPo8svvaVU0twA=3D=3D?= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CY8PR10MB6538.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(366007)(376005)(1800799015)(38070700009);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?N8fBX1cpEBPrfoKZ5yBcswL1Pddi0yTcKBphy7HnUWGVZ6iIAQi9DtHcBz8b?= =?us-ascii?Q?BVKhrFxC80miSLO30jWX4wk6rohhYkofH9gaUZSHvyz+/4ATrM5D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NEnAYxGzdOr3uGz4ZIubTsXfBluY/+uTunIkdkgrA?= =?us-ascii?Q?CgHrRjkgRwuDpvxoUSYOjWCqKhxn/ubCbDgW8nRJJ36twX4isClcmzxpmELM?= =?us-ascii?Q?it2PUfG3mZscz42kjdaViNbmzKmjDTtTtcQV8wSs1WBx0Rnurx5l+1qKeLPh?= =?us-ascii?Q?od2UI+m31nWOCRFFls8BCdXJVsrtyfGwq3v2UazLxpYnQMzivqPFzoYsOU3X?= =?us-ascii?Q?BVZHJzTHlX2w9TS6Fw33YzeD3RPD6mnD/K2ARSHO8XzW5xtjPHKYKP6CC48m?= =?us-ascii?Q?9lm+keOOu7rnMhfO6Cym3qFywWxm683G/+0GgOBxN0pJC61/m5BSk1OMqFLH?= =?us-ascii?Q?SGnIqhSlAkmTLgJomjIymqDFfN65tZBIUBYHqSePrWFBqLxNCI1xSTlUwxRI?= =?us-ascii?Q?qNqrLqqVCZ8JlEkDsaQMgIFG97bJHJvuIw8/io2A5FZ9aBG/dNbclnLlOjip?= =?us-ascii?Q?MFkgyBM48LH+4nXqeX7B7cn2a56kcWF2qZInim3+/24gpId+gFPbpsgo+RbN?= =?us-ascii?Q?umuRahlXsbkxe1AFuhLWZFIaWHj3rzjMSuqQOCwfx45h5G5nzJF48/flLjkD?= =?us-ascii?Q?/td4lcxec7lBMXthr/FcMZem7LbOBkxYyaIIqrt/Ry5Vg3oWxMcXKdmj1GtC?= =?us-ascii?Q?gg=3D=3D?= Content-Type: text/plain; charset="us-ascii" Content-ID: <4048C283D8B85B44B93A47FD01641288@namprd10.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: /jdOLJHie0uMvVdlyXrUcWZ8NkL3Fr+oPvnAXpuUcq0iScWgdGqLfXUofqsww5bj3GOypFOJciUMdWz9g2Fl5cKVZ/zWj/ySXge9VZXjcoWX4wvtU6TGpAoBfIYl2NSIxkLP4TSw76MxwBE8gi/QB1pJFURVcUiFnnpPPjF/VhtA78oLmtwSfBZysuAtN29FB6guPK437w7N2qHTD43u3UHfk8Lei2WxQYu1da0OInob2p4K42T6g0HqrluE4wvPE/W77fmU4mUagyH+cl2uEj859UfmpTogOuVu9PP8nZ2WpWNiDeOi7c8WU9BOBN0vFXa0WY4KgsveYNPTge9/f+p+GP8dGRzCm7PfDcQYLLZybiyDwfJo0vGG88IMIYl339MXNWl5Lx3EISiCNeKcwRR0JTCYxhnmyuCfsiTH+RD5e8zwUN46WXjRzHklHUK5xHsCNdv2MRi7WBOraGu32l/hlmAeGj7JOtNHMBNU7xJQNbC0RXHOXIxDhdE6gSiS1f63RFwMBJF0CHRp5rKBPnrXlXQ5V5P7WxB9S3eh2oK+D0f4d1LlwCUa8bsgcqX0w1H8D9BamcwZQdymjIEi9ZZzF8gmo5iK4914lL76M/M= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CY8PR10MB6538.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 84f9d389-74f4-48b8-8ff4-08dc63cfbaed X-MS-Exchange-CrossTenant-originalarrivaltime: 23 Apr 2024 19:58:22.4922 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: DonezHy/3wL4kcvB1Bnt+Wfi15IA/EUW/WKXKfThtumR9VjHBeOG8/kFeg9As4Cgvz3U35Q6z1l0xmCgJoLEcQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW6PR10MB7659 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1011,Hydra:6.0.650,FMLib:17.11.176.26 definitions=2024-04-23_16,2024-04-23_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 phishscore=0 mlxlogscore=999 bulkscore=0 mlxscore=0 suspectscore=0 adultscore=0 malwarescore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2404010000 definitions=main-2404230047 X-Proofpoint-GUID: _1kXepc87Z5vo3a_VVmk2e8Ip-Zpfjdi X-Proofpoint-ORIG-GUID: _1kXepc87Z5vo3a_VVmk2e8Ip-Zpfjdi X-Spam-Status: No, score=-5.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE,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 Apr 23, 2024, at 15:51, Joseph Myers wrote: >=20 > On Fri, 19 Apr 2024, Qing Zhao wrote: >=20 >> gcc/c/ChangeLog: >>=20 >> * c-decl.cc (finish_struct): Change errors to pedwarns for the cases >> flexible array members in union or alone in structures. >=20 > The C front-end changes are OK for GCC 15 once everything else in the=20 > series is ready for inclusion (in particular, the testsuite changes). Thanks, will update the C FE changes based on your comments. Qing >=20 > --=20 > Joseph S. Myers > josmyers@redhat.com >=20