[0/2] PR101832: Handle component_ref to a structure/union field including flexible array member for builtin_object_size
Message ID | 20230131141140.3610133-1-qing.zhao@oracle.com |
---|---|
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2789251wrn; Tue, 31 Jan 2023 06:45:07 -0800 (PST) X-Google-Smtp-Source: AK7set+Z+o0ZhGvM6weGW7xZ3EUz4OSszBrtwQMw79B+eQpYzZh5wyRF0BdI2m/3V1TZtH3nABkM X-Received: by 2002:a17:907:c26:b0:878:53a5:70a1 with SMTP id ga38-20020a1709070c2600b0087853a570a1mr29177353ejc.50.1675176307115; Tue, 31 Jan 2023 06:45:07 -0800 (PST) Received: from sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id k12-20020a50ce4c000000b0049e1bc53bd3si22504221edj.486.2023.01.31.06.45.06 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Jan 2023 06:45:07 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=Uj00u6XS; arc=fail (signature failed); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 67CE338399AA for <ouuuleilei@gmail.com>; Tue, 31 Jan 2023 14:33:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 67CE338399AA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1675175624; bh=x6Bc5pXC6lvOP2rlvPBQ8JopEdWGhYxoHysCZsgWo6M=; h=To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=Uj00u6XS7rYGaTjU8/BMJDf8Rfmpiv8RoygkbSfUM3BUvR3/YsVjX+te99aCPYyrX S5wqGW745crz75kqv+JMffVDqF9+3WbqVYH3sSb9tZnnkHUj+qzQpYJilr2xQcaccc b4H7jEgqLYA5NpsbHaCVzosyGIUfkOv0faVf7wHc= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from eggs.gnu.org (eggs.gnu.org [IPv6:2001:470:142:3::10]) by sourceware.org (Postfix) with ESMTPS id ABED538506D7 for <gcc-patches@gcc.gnu.org>; Tue, 31 Jan 2023 14:31:57 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org ABED538506D7 Received: from mx0b-00069f02.pphosted.com ([205.220.177.32]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <qing.zhao@oracle.com>) id 1pMrNU-0005l2-3Z for gcc-patches@gcc.gnu.org; Tue, 31 Jan 2023 09:12:56 -0500 Received: from pps.filterd (m0246631.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 30VEAjIe015987; Tue, 31 Jan 2023 14:11:48 GMT Received: from phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta03.appoci.oracle.com [138.1.37.129]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3ncvrjwjxy-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 31 Jan 2023 14:11:48 +0000 Received: from pps.filterd (phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.5/8.17.1.5) with ESMTP id 30VE0Liq010351; Tue, 31 Jan 2023 14:11:47 GMT Received: from nam02-sn1-obe.outbound.protection.outlook.com (mail-sn1nam02lp2044.outbound.protection.outlook.com [104.47.57.44]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3nct55y5mm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 31 Jan 2023 14:11:47 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ciGvmbGsu35cMhii9fqTdXL0WpSE7Y3+hjb3aiDoBD/Gm11RkGCoo1IGxl3Q0o+6GVhVbhr2s+imesiXboMX1Wy+gGzJkxR0zFBT8n+Ti1cyMHqkd5Kgvk0ohpsuSZlNlQS5IXGQMQJWV66HrY23kghk527Zv8tRfYOVn9ZiMqm6dqKxqxQyLyHIi3aMrY+zO8vz6w9HEnJ+xxPVQcyBs1TtVlJxuUxuBoM5GBBdSuebeJB5HYNQgeQc/KHHRyO0AnZlpTp2Ah0U+mi40jeUjTrQDTgsWNgf93XyJKXbVtONjtx/+d/7O7TkCrdEhe8qFrPoKtm86edcZcdQ51tOmg== 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=x6Bc5pXC6lvOP2rlvPBQ8JopEdWGhYxoHysCZsgWo6M=; b=JqjZHRY0Vv+ydrUab9hLRW4jIELRY27D6K5Do8NKWguAf3gL9JkeDK/BHH7wigbM31LHnk4UmuQN4Gu6b7Ug82qZeZqWo7Zzuij7BgZxOTYMmIDJfPhaZkO4PB8qm8MlQvKoNnFELdIMZ5dJ59flkPGhWPFxs+Imlo5S3v7mWSShyZjiNH7fmkSz2Jx9izqcpmXo2o247k+HWsYaALEzRXeUarB0zcLhjp+QcslJrElowny4vA1Euq5AiH0MiEaAxK9jqZlB6Pu0sKpY3G6TlZm90uIzV8oijheHjC3cWvtNX8u9LchNI5q7LA9GunX0mnIw1y8PBZVvGsGxMwcX8w== 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 Received: from CH2PR10MB4344.namprd10.prod.outlook.com (2603:10b6:610:af::19) by CH3PR10MB7434.namprd10.prod.outlook.com (2603:10b6:610:15b::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6064.17; Tue, 31 Jan 2023 14:11:45 +0000 Received: from CH2PR10MB4344.namprd10.prod.outlook.com ([fe80::c96c:cb50:dea2:2cd2]) by CH2PR10MB4344.namprd10.prod.outlook.com ([fe80::c96c:cb50:dea2:2cd2%5]) with mapi id 15.20.6064.021; Tue, 31 Jan 2023 14:11:45 +0000 To: rguenther@suse.de Cc: gcc-patches@gcc.gnu.org, siddhesh@gotplt.org, keescook@chromium.org, Qing Zhao <qing.zhao@oracle.com> Subject: [PATCH 0/2]PR101832: Handle component_ref to a structure/union field including flexible array member for builtin_object_size Date: Tue, 31 Jan 2023 14:11:38 +0000 Message-Id: <20230131141140.3610133-1-qing.zhao@oracle.com> X-Mailer: git-send-email 2.31.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SA1PR02CA0008.namprd02.prod.outlook.com (2603:10b6:806:2cf::13) To CH2PR10MB4344.namprd10.prod.outlook.com (2603:10b6:610:af::19) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH2PR10MB4344:EE_|CH3PR10MB7434:EE_ X-MS-Office365-Filtering-Correlation-Id: cd21322c-b788-4cc5-88cf-08db03951571 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: hp39KKYZr9RW3CL95w02Rh4x1X9phIvOgBElHFJhcLLMW5Q9Lj7HauEmXO+YCIGd1CijbAEO5aXDpgy8lpBKEWEjW7FkSZWwAdAGbYGLADYbWR0u/uFB0974GjR4iXPXjpi9EsxDJIm6byuodoKIzMLJR+Qw40VRT6W15T47+aF8T/PGdMBtvoeDRTgqvdsH6AedrY516xFEvOxb2/9zzUmrUf+qMzmwnrHH5ReVqArAah02cyFB5MAYy2nyAq3py+m6RjBu8C4tx5XbByK5RhX5DNFr2gKsyXhLcs2yKWzFmO8+MTWA4MhuoAoZiOJw4i0Egk6n7IPeHu8Q6tXNnUfjtgq+WUN3nBbc4xoan9Jo9uiwrxkZDhMgG16SXg7VCiZ8NtYsA/IPlteAjzjMJSc7qS+Ak2xo3sYsNlKY67XikVJnxhgZWDwurk/RVNOpRNH3kRwvlgJXJtDr58PvJQUEoacC+L4rbIo1/8SmvkjHUigt/JooE+APCAfgxgbC5Zw4OosBz+lFR2I25+tB86Wj+YPEWeaOz+kzA5b32ulOoaGijNhJPKpNgE7ePTlRci7lz4i5SQkp3igDqn4u5HRqK6nrEAXWL2UhBzEAds4ba+IEoIk6ccOF8qhbOSBnQsXaekVFcSbWeRtzB2458g== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CH2PR10MB4344.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230025)(136003)(366004)(346002)(396003)(376002)(39860400002)(451199018)(8936002)(316002)(5660300002)(41300700001)(66946007)(66556008)(66476007)(6916009)(8676002)(4744005)(44832011)(2906002)(4326008)(478600001)(6486002)(26005)(186003)(1076003)(107886003)(6666004)(6506007)(36756003)(2616005)(6512007)(83380400001)(38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x+ihZMlmrT5mdA2XLgdNRQOmhTV2FI/XiscgexlHXxJLDFjRtc7x9eYsQ64xA4Fempq7jOzddr50vXJxDy8Th3NT301RsiSbrc6BFI52nkfu9V5aDbLbCFqyeg4eEd5mhd+7OQGp/lXmQfVr3esVjlPkI7Qv76dmsCdiOprnfBNraaFgvzM8Jz624RvTVKJQeK8arz4x15Y0iQv5qlxpzVySGaR4MT0+3do7if7Syw9J3Up0accUJk89ZaRCMn7FDLOxMzUzCT45suU+mDwNZ6osUEUiPIOUitTkIzgRIwQZA9nsYjmZW4qgSy0xKU4has2N1O9ghUzk1rUqETXTm/Y98FjIaMdgDbAsaMPeavK41LUIQ3aGPJYdU38PjoYm5s+FemCX3Ub/ujoMOGW5HwYo1dtev3ZnmHJZEswdWsbyFWiDqryMBVp+P3k/3clLMuefyyzIEF+zOQyu5TFsawWKtKB0TPYi+qMlBtm528nehyFPKkPWOthgi4XMjbbOpAqwwWnrVu2Oj8WEd1r9nHdq/hY/Y+wxfYellfxEVAsHUI2qzDE/4Av2g7qRxmYXYvH3RYSOm8SzbSREgkR9jVATw9 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: n4trq2ADHLQUf5GT1LVksbJvAAzojWrwU0wjcKM1RBVjSWeLwaApPcTHJJQcwb1Osq7IedEZlwRoEMiFvYV35DRqihjrsZtjhqso1jmu/ZJkPx3+/1LaI2oAdri6M34vjiNgQUaxRR7q94DC/8gQAjVTxSkxc22bMSgIbHWe7ZNO3uQ70pgD8urys4KID6K7mY52UrYLFq7jP79UyxL41csHogounLsvghg8leEHpsbP/QY1n8miNle2gDgrFvYPVhAJ8Di4F4RBgO+QePDHoFIqYZ9TbDT5fh0JQdABgdP4dBFu7v5nAkEIZkT6I5e+GlErVOzUoOOJdUOL8wYWOZxN32mdGhZ1ioI2HpYQyDLYbI4q8bZ/Ig9Yi0SSZP/RVSv2YZZxO//SJRHWPq/onPchZiOYdKglBWJM5fJVLO+9Pq0H3igQDxhibBnCnxaTHcgcI4yqe61KehEbUNAXKfle+cvEod9m4a0RjAyEV9Q446+wtpepQh1XYLYxXSWfv5fN54RB3eDpxyD8EMIgCZr5oHq8gM1yxHqxKJwH7ZE5h85exzN/RwzM/CmzNkyK1CztkcJgtw4Otk6Bf17VMQSRLSXAF6zQgGDRqK+kEtgJl8T2AEmubWqiI59h0FdgwQeh+LHOaBru/19MZIbeEb5FKBz9kotVUrqqrGq6G9LJU+h1/tG6DzkTHr+Ft/FHty6PFCAlsdEM7z6Iygo2vAzhrqMgt+ZQZQvtPlp8kjoBfJ0Nsis5WkMctHNBeAl4R23zt0Gcl0Ln8WwbXLA54jeE3zELc0lELaOMP7vTp61SiNCTbvkQ8j0eKFWdCJHvoLOsQcbswD3y4TPf65MXSw== X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: cd21322c-b788-4cc5-88cf-08db03951571 X-MS-Exchange-CrossTenant-AuthSource: CH2PR10MB4344.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Jan 2023 14:11:44.8610 (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: qoDE0o3lO5tK/b6FGADrVaPC5yT7I+dx7wqTopv84CJFo9c0JUkv8HmrD6fbwid8HCu6GbVHs9z5uwjt5peMHw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH3PR10MB7434 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.930,Hydra:6.0.562,FMLib:17.11.122.1 definitions=2023-01-31_08,2023-01-31_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 phishscore=0 bulkscore=0 suspectscore=0 mlxlogscore=807 mlxscore=0 malwarescore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2301310127 X-Proofpoint-GUID: uCKeCbMOOa1YVSsv6OYpsRSaow9YrwTm X-Proofpoint-ORIG-GUID: uCKeCbMOOa1YVSsv6OYpsRSaow9YrwTm Received-SPF: pass client-ip=205.220.177.32; envelope-from=qing.zhao@oracle.com; helo=mx0b-00069f02.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Status: No, score=-5.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, SPF_HELO_PASS, 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 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> From: Qing Zhao via Gcc-patches <gcc-patches@gcc.gnu.org> Reply-To: Qing Zhao <qing.zhao@oracle.com> Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756549671258232757?= X-GMAIL-MSGID: =?utf-8?q?1756549671258232757?= |
Series |
PR101832: Handle component_ref to a structure/union field including flexible array member for builtin_object_size
|
|
Message
Qing Zhao
Jan. 31, 2023, 2:11 p.m. UTC
This is the patch for PR101832, to fix builtin_object_size to correctly handle component_ref to a structure/union field that includes a flexible array member. also includes a documentation update for the GCC extension on embedding a structure/union with flexible array member into another structure. bootstrapped and regression tested on aarch64 and x86. Okay for commit? thanks. Qing