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 0CF2538A90BE for ; Wed, 10 Apr 2024 18:25:29 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 0CF2538A90BE 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 0CF2538A90BE 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=1712773543; cv=pass; b=c7XmH6ZUjsh2xRV20RjA/AY8/S0HmANKlO/I4dWXJSzEvmVrvvS78ehZiyrseKIxujoSGQ8CoFPpLexiJMF+ZY2LQqVF6f1g88k8ajaH0MGLADPP4F4YjIvD/pz/ww3qbn1BTjrqSzUyUnAWy5obD6b+qZlxN/w0nHyXPqIJprg= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1712773543; c=relaxed/simple; bh=HPowQh26MLNrgSXo9yN1ir8gAKHhJ8o6nYl0KqdNBS0=; h=DKIM-Signature:DKIM-Signature:From:To:Subject:Date:Message-ID: MIME-Version; b=rNdDKsj3PykcvLf0Er9sBpgHpbC6ioVAkg7IP3fMFszYekmNJdfcE1B+Y1EuZAPuR1lCXKlIRWzvSLvPJfqnOJNeBGynPB07AfU2FNqHcJMFz/WBqCg0Ufefqn1fSAO9B7/0sjkC4U106ZEUt/Ey1b9XSOobKEneWtUCdNG79gY= 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 43AHhdPF007034 for ; Wed, 10 Apr 2024 18:25:28 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : content-transfer-encoding : content-type : mime-version; s=corp-2023-11-20; bh=JQMUz6BexSZHM1uZ6yPv3MG/XHWINgO+VLiNmd45ZH8=; b=Asw++oZqZ/PRX22Jekf8bSQhtOdGZy7+X2ZPbuXwBCU88BoecwHNtWNj+pHp9hbJP07x 5BwKiOQdzq48We5HT3dbBRUnh9DxQLwVxlSmngKIo4Q7k9Wka56BDqqK+mld8eOvhSRd LMUgIkTdbh6kRgBCtTFHWuqE7InpxTvEw5OJ+76gIm7RSNq2X4T6/0aZeD0slrEeehFa L53tgPyMbHqo9IuSm6Aptf50wFMMqbsTV+TBoKmMS9HyGi47VRr+JHvwNlqLjs9rxMSp PipVM63qCVpVCr+CfxMBiU5+Cwgb51hFH6K1cxG9cRazEplBnkuxEpfSrwpveIoxFImJ 4Q== Received: from phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta01.appoci.oracle.com [138.1.114.2]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3xaxxvg194-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Wed, 10 Apr 2024 18:25:27 +0000 Received: from pps.filterd (phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 43AHdnT5007811 for ; Wed, 10 Apr 2024 18:25:27 GMT Received: from nam12-dm6-obe.outbound.protection.outlook.com (mail-dm6nam12lp2168.outbound.protection.outlook.com [104.47.59.168]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3xavu8hwpk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Wed, 10 Apr 2024 18:25:27 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JQr8lpHOSVjeZQdKLVFwum6HEqh0cqG6w5Cy/P1IuAtvsHkgbn04BLRP6+TrBQ3Nh12izcigTFRwyf8tI6l7XzeJksy2K3N2dONPjndY+83IcinLq5NOyvv5wEQViv7JHcXE1vzh5a+kw66lrU7eFuKlGoYhtdlYosmmk6u69+S8NPXPz+ozPDzNH95CdIvoJT/aFh3A+kX69hcZoZMf4LT9OInJ3wmWAwUEaWyf+82jbRt413JLpGu+09j/sJQiPzHmlhWYKtMwmv8bHku4TnbSGjS0QSJzn3+2RKHndDqCwCtBg5R2YRGzMqR54dF6iJt97vdaor6YiGahIfIV0w== 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=JQMUz6BexSZHM1uZ6yPv3MG/XHWINgO+VLiNmd45ZH8=; b=jXv1OJajf9yLoXFvz5QL/MeejS25bhM69CMbckQ//otUBH53NbVqO+mr5sPqmxZWzp5FbPDs0RN/RWB5K2Vez4w+JMvlu0IiDEkWKDBiWMkdIVruIER1QWCIk4NlawMnlfNTetnEPxn6Lue0uIFZIiR8xjV9ZFGeXyQw8URu3aHJMZkWfG8bdfYRkluCKj8Q4dZc6wVqWTLB8DeVkC+523Jvq8GhbNKWn6V4CKLeM5yYuXaUiXXfNM5G8asTegfOBSrFQqWj1POg4YUGiqUZ6wiH4FyhCpVZpPLkEBB14+nzE9zjB9O4goS5J/jxNJHxhNdTFWtBhsiuac5d1QhKYw== 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=JQMUz6BexSZHM1uZ6yPv3MG/XHWINgO+VLiNmd45ZH8=; b=OCnZZDc0KjJEnvEaPQoVt0HJJkY0GXEH39ejtDS3bM8HGJWyUJIEjZaVA5YqaQso0GtglVwZUCH0L+dD4IRyCghjqTkZdG64c4IV/bsOJaPFBq3YUOR9uxpQDhunAVP9RM5ZtM1HRDs0f5GGoVnnzH1eyu9hDsgflXy144A1aD4= Received: from MWHPR1001MB2158.namprd10.prod.outlook.com (2603:10b6:301:2d::17) by PH0PR10MB5548.namprd10.prod.outlook.com (2603:10b6:510:db::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.46; Wed, 10 Apr 2024 18:25:24 +0000 Received: from MWHPR1001MB2158.namprd10.prod.outlook.com ([fe80::6ae9:dd4d:17bc:4f2]) by MWHPR1001MB2158.namprd10.prod.outlook.com ([fe80::6ae9:dd4d:17bc:4f2%7]) with mapi id 15.20.7409.053; Wed, 10 Apr 2024 18:25:24 +0000 From: Indu Bhagat To: gcc-patches@gcc.gnu.org Cc: david.faust@oracle.com, Indu Bhagat Subject: [PATCH 2/2] btf: do not skip members of data type with type id BTF_VOID_TYPEID Date: Wed, 10 Apr 2024 11:25:11 -0700 Message-ID: <20240410182511.1528093-3-indu.bhagat@oracle.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240410182511.1528093-1-indu.bhagat@oracle.com> References: <20240410182511.1528093-1-indu.bhagat@oracle.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: MW2PR16CA0064.namprd16.prod.outlook.com (2603:10b6:907:1::41) To MWHPR1001MB2158.namprd10.prod.outlook.com (2603:10b6:301:2d::17) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MWHPR1001MB2158:EE_|PH0PR10MB5548:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: pCKoitFmRQXGp5UVxgoy98uxaVf1dvsS3fI81+T17fAVfl+IS1eWJShZ9EY+ZTWDxOOUxbbRpK3R3+36/4RM7dzmAWX4z+jIHkYGEi2at3WHhNI/NKuX7QUgQZPnKzKKocVukA9d8rX4x3S6Gik+1CvHfAcdzRvEYhFA2rQI/9iMlcWTV7s5zr4HcnpFi+DPy3/fEbV/hYNmLkz7XbLNCiGKciw2IlhnQy0Ep+9TROwueREgKrvKZtUC06bbFux54tW2qXjl3nosC8o1WPm31CS5wzFqTv1K9N/NWriuY4ZwkaSN/ThUsMRhEWD9r1lVbVn9hOy+tP+ykDBelz672WuUC+bIpYsrEQQRteOGgTHyGN5Kv283UnR59w0qGLrkL2guVJSCty7r6MieIRtr+PHJUK+miYX4HVWRqVX6kkbtfwr1+AKSmxzP0ze+E1BMLH4TY+NDItFCWBcq8fqmxAM7/Nhbbdr+dmz6Bvixc+DZ8LjW4y2CnhF+ivNLYd982Qdcbh129/s6jP/SHoh3+MsSROBZR+I1fSU1mjWxUOf9sIsx4O8nqlJdh+aMi0NmVSqZyN+pcIpyrVLb+06EqxQS5mVPOezMhrNnHBZXXqemFwuYeelSd6/WHpzzMxkbizUd9Zwx/ZhFtGhDMUh4gqpn4wbXf1Miy16ll6UPiCc= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MWHPR1001MB2158.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376005)(1800799015)(366007);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?wxoa1u5Swd5wyI5ywY9WV7J1mj538iexIew2VBdRW/+EN316n0LSfcbo0PCH?= =?us-ascii?Q?IqXYZJwMYrFBY1C1ft60bkX3+AgQSMdXLIbcXzOQOgxD8eieDhvq7cQBvj5C?= =?us-ascii?Q?Ao784IxjnZkqMVFgznzv0s6irSUYXTmBC4T0yWNKDFY1lIrU8PinAHP8WVp1?= =?us-ascii?Q?TfKz81lB2IYsijiIQtFec1ReJBtH9JV6dB3Y4Z8o5i2Riy8xMSTDgO/x6dRx?= =?us-ascii?Q?Dgo8j79X8AYf37EvKq/3Iq2i5kO2r1uvecLUT7PEQrxQtE3LGUZQs3ql1C+o?= =?us-ascii?Q?FGo3T/D91aMCAUF/0l8FbFovG3vXFhixBn99SBAcKKSkhAokA/yrP013Lnk2?= =?us-ascii?Q?z4exlv9u4my37azjfoBVE4qF6qbXqPxfpQsafmPaey32WNnDXz7h90Qb+bVD?= =?us-ascii?Q?xS0k0YE+pI1Q3qfLvboJjxrU3jgtnUwskk3+sGRaxvSUlvbxivKOv6vzsNi9?= =?us-ascii?Q?vg1qXJVRehmmnvvdqH9o/vD4rM2Un3HVOJPXvXnZ9zG/PZFbhGMpgomn0aS0?= =?us-ascii?Q?mFrC3qqj5PAQs0DDGF1RLWf8w7PINNdx/cDv+PyrZjQDBB3AYIx12hDpMDeh?= =?us-ascii?Q?kkD+azjVYZuZcI3z9MpB707Db6MR3Y1wLhF08nlDOY0VlRcghNQQnxYY8/rQ?= =?us-ascii?Q?FalWA4Ot20sSn1+54G1kbKfzGhay+a4PjdFG1L8wV4R+wVkzh1OjhMHv4c5E?= =?us-ascii?Q?PvEYKNd7NN9nQ/5CVFP6bGPD50dGO3mcuvSvn6j/o9BlzHwVH0TsqcqvX3c/?= =?us-ascii?Q?r5MDfq7TrIXip+uIG0kShnUFFspGOQkLTsTuR0rUaW/lE1MADuYl4W5NWjai?= =?us-ascii?Q?ltIAClXpwojfVFkbMO2ZluNsxkeIfkQ3+FhxmOVUYDZ0gaSx8EEmjsOcS9kp?= =?us-ascii?Q?NwWSD+2A/DoiVsLhvSUU3uF0UAekbJ9azCCQtjsWVJHGR9E4RiKxWPPUCy3s?= =?us-ascii?Q?gsc51UH0znv2W5/mNTpUL55EaMYMWjx2MOyfgNuXwZCihRACzACCVRx+MQ5h?= =?us-ascii?Q?+xmFV1wXObAtVGx3yOUugF5r5fhocTFGxbdXR6QiV6ZSsn55Iy+Cgn41359m?= =?us-ascii?Q?e7TemSC6Q4x+cxkrX3S9HYsXv6rmfQrdkpv0O8rJa1oPV+tVSvZX6lAHf0ZW?= =?us-ascii?Q?KHU0GcdYiUAiLjIo3HEz8qT3T4nv9HfcG6EHd5nfNTySHEAkuBIiPwDyv/UM?= =?us-ascii?Q?LQnyBsWNmurkPda6qNBUSxHQN0nk5fozqZ+SOh5kG4Zv1VisOHSkPAn1G2a1?= =?us-ascii?Q?TH1dBiQDo4TITmPyR2QFajKYGW4wBhhLctMd/++7OZTRx/djJesjg8tiXWVK?= =?us-ascii?Q?CGb9/fuOKC82CXAQqntyGkOVDxceiqBzW4KLrmeXBAisb2gBarUs+3EHm9k/?= =?us-ascii?Q?WeplEyBEIKe60Mz3P+LDi1lbhYOyT2jJ4oNfDyiioCSYUtDuyj7EUt3njKvm?= =?us-ascii?Q?0VHwU/dnGkXY87QbCRhQTSlhmTcUNK3U8UFVI5vT+XqghZHYYI+pGcuKnawM?= =?us-ascii?Q?4TE6dLXjghQcOs3A4yUZGfRp1AvLeSDFC48gmyl062LwPRocKsoSXNMIYtWe?= =?us-ascii?Q?KYRLHIQvt0lJvJCPsM5KRehz0jyUUXNyUMCTOaXsgVCjJVAlRUBjx+YJ/mvM?= =?us-ascii?Q?v9fNTruUx4HPJWpmEeBnpCQ=3D?= X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: 21ef+IqN108t5dJSSxckaw10LJin1qrX0qx0fkzzvmsvKo9EQHZv0ehPQZ0QQV0ZGf3oIJ6yfDBbk33nRnXNUqJ/sO7WXoMnMAhLUU70ZLLgZk3wnrXTP2S/JC24JvC0/PzrO27F/88lsfSDXW6xfVUgmMdOI9LE3Po6Sm0lwrhXKW6NikcGbGKkKUMVnHc1XDq5Ai1kZAWNuBijJt1BUAwY9BucC/jAxpRqALw49kxeBT4eLC9qmNGLRIHvbTgHIj3PwFjLRwYv4EQm7hNsL9J7EBb2hcgJcpvp6K6S+jQ5sSw9eBXFesvvA+FaggjK7tLBgr0BijByjuxQ5IAyIQvH5eVVqD+VD8dXdikgFCDixb6GE5zaPuW1qnunN9X3/V5st8Bqy96CwOJe0tG0Kn0zSARDTE/OE+JOwJKDzCGBrmQgWiotM4USClaHKfxWL0jq3E9x9+eDRLvcS8DUTWLpPAN0YRu3PA9m+mpIuo9aNDZGE70pCgLynFvm9oNsoCsiu2ZRr9CH2TlAdE7tSHghKvBFjr0KCQG5EPT4JbrlFFt6hvA2d1Nvott1AqEO1ZbLzXKHVO7IuZ29xJuvSgMcwUwppkmtcdoraJtRNRQ= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: a4e5fe37-76e9-4064-c61a-08dc598b96f4 X-MS-Exchange-CrossTenant-AuthSource: MWHPR1001MB2158.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Apr 2024 18:25:24.8880 (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: 3ppVerGhe2/tVKMLm4ZVohZIA2WAv099VqVtxvb0hnl3X6ifqXt9SmL5T7+IDw3er/6J3qtEK4CrJK33XfN//g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR10MB5548 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-04-10_04,2024-04-09_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=999 suspectscore=0 mlxscore=0 adultscore=0 phishscore=0 bulkscore=0 spamscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2404010000 definitions=main-2404100134 X-Proofpoint-ORIG-GUID: XGWvnwxRTa0xROBmKkJHkuO-rLs9Dh1o X-Proofpoint-GUID: XGWvnwxRTa0xROBmKkJHkuO-rLs9Dh1o X-Spam-Status: No, score=-12.7 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,GIT_PATCH_0,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: Testing the previous fix in gen_ctf_sou_type () reveals an issue in BTF generation, however: BTF emission was currently decrementing the vlen (indicating the number of members) to skip members of type CTF_K_UNKNOWN altogether, but still emitting the BTF for the corresponding member (in output_asm_btf_sou_fields ()). One can see malformed BTF by executing the newly added CTF testcase (gcc.dg/debug/ctf/ctf-bitfields-5.c) with -gbtf instead or even existing btf-struct-2.c without this patch. To fix the issue, it makes sense to rather _not_ skip members of data type of type id BTF_VOID_TYPEID. gcc/ChangeLog: * btfout.cc (btf_asm_type): Do not skip emitting members of unknown type. gcc/testsuite/ChangeLog: * btf-bitfields-4.c: Update the vlen check. * btf-struct-2.c: Check that member named 'f' with void data type is emitted. --- gcc/btfout.cc | 5 ----- gcc/testsuite/gcc.dg/debug/btf/btf-bitfields-4.c | 6 +++--- gcc/testsuite/gcc.dg/debug/btf/btf-struct-2.c | 9 +++++---- 3 files changed, 8 insertions(+), 12 deletions(-) diff --git a/gcc/btfout.cc b/gcc/btfout.cc index 4a8ec4d1ff0..ab491f0297f 100644 --- a/gcc/btfout.cc +++ b/gcc/btfout.cc @@ -820,11 +820,6 @@ btf_asm_type (ctf_container_ref ctfc, ctf_dtdef_ref dtd) /* Set kflag if this member is a representable bitfield. */ if (btf_dmd_representable_bitfield_p (ctfc, dmd)) btf_kflag = 1; - - /* Struct members that refer to unsupported types or bitfield formats - shall be skipped. These are marked during preprocessing. */ - else if (!btf_emit_id_p (dmd->dmd_type)) - btf_vlen -= 1; } } diff --git a/gcc/testsuite/gcc.dg/debug/btf/btf-bitfields-4.c b/gcc/testsuite/gcc.dg/debug/btf/btf-bitfields-4.c index c00c8b3d87f..d4a6ef6a1eb 100644 --- a/gcc/testsuite/gcc.dg/debug/btf/btf-bitfields-4.c +++ b/gcc/testsuite/gcc.dg/debug/btf/btf-bitfields-4.c @@ -6,14 +6,14 @@ In this test, we construct a structure such that the bitfield will have an offset so large as to be unrepresentable in BTF. We expect that the resulting BTF will describe the rest of the structure, ignoring the - non-representable bitfield. */ + non-representable bitfield by simply using void data type for the same. */ /* { dg-do compile } */ /* { dg-options "-O0 -gbtf -dA" } */ /* { dg-require-effective-target size32plus } */ -/* Struct with 3 members and no bitfield (kind_flag not set). */ -/* { dg-final { scan-assembler-times "\[\t \]0x4000003\[\t \]+\[^\n\]*btt_info" 1 } } */ +/* Struct with 4 members and no bitfield (kind_flag not set). */ +/* { dg-final { scan-assembler-times "\[\t \]0x4000004\[\t \]+\[^\n\]*btt_info" 1 } } */ struct bigly { diff --git a/gcc/testsuite/gcc.dg/debug/btf/btf-struct-2.c b/gcc/testsuite/gcc.dg/debug/btf/btf-struct-2.c index e9ff06883db..fa7231be75c 100644 --- a/gcc/testsuite/gcc.dg/debug/btf/btf-struct-2.c +++ b/gcc/testsuite/gcc.dg/debug/btf/btf-struct-2.c @@ -2,14 +2,15 @@ unsupported type. BTF does not support vector types (among other things). When - generating BTF for a struct (or union) type, members which refer to - unsupported types should be skipped. */ + generating BTF for a struct (or union) type. Members which refer to + unsupported types should not be skipped, however. */ /* { dg-do compile } */ /* { dg-options "-O0 -gbtf -dA" } */ -/* Expect a struct with only 2 members - 'f' should not be present. */ -/* { dg-final { scan-assembler-times "\[\t \]0x4000002\[\t \]+\[^\n\]*btt_info" 1 } } */ +/* Expect a struct with 3 members - 'f' is present but is of data type void. */ +/* { dg-final { scan-assembler-times "\[\t \]0x4000003\[\t \]+\[^\n\]*btt_info" 1 } } */ +/* { dg-final { scan-assembler-times " MEMBER 'f' idx=1\[\\r\\n\]+\[^\\r\\n\]*0\[\t \]+\[^\n\]*btm_type: void" 1 } } */ struct with_float { -- 2.43.0