From patchwork Wed Apr 10 18:25:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Indu Bhagat X-Patchwork-Id: 56867 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 709A23954458 for ; Wed, 10 Apr 2024 18:27:29 +0000 (GMT) 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 31611394880D for ; Wed, 10 Apr 2024 18:26:31 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 31611394880D Authentication-Results: sourceware.org; dmarc=fail (p=quarantine dis=none) header.from=oracle.com Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=oracle.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 31611394880D Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=2001:470:142:3::10 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1712773602; cv=pass; b=j4HEc0QUIqXwrfQwe3/edTCJJNDHcbTyvybcV0v2Wo88MykGP0cGZc+Sg2as0jMSnmaNXvDqXrpWq/dUnpDNmF3b+YHB8P0ORdgGwk8YCIiRMmoP0s6kgEo4Xdpa6ZtDTajcBb0rxUylcFVaWchU3H3o5qgOYb00vm99xJNcObk= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1712773602; c=relaxed/simple; bh=ZgJJC4OT2S/BKgJ++BHXNixq/VPNRCAgO4wp1iFtotY=; h=DKIM-Signature:DKIM-Signature:From:To:Subject:Date:Message-ID: MIME-Version; b=Cfu3/q5SsR3BKHowELYqSs/sxm7tYEBahEz4H6w9fCjQsSZWuBwkCvyEz+gU4KBUKZCjTB/PckGmyz0HnSpotzntIMTYHy0h0wZjynnLk331JuGe4UwxHqkfpNEHEDrFK2HYvaj8kRZp4FZwPd4ht/dWRHXEGMC++EWws7SvIUA= ARC-Authentication-Results: i=2; server2.sourceware.org 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 ) id 1ruceQ-0008Oo-0s for gcc-patches@gcc.gnu.org; Wed, 10 Apr 2024 14:26:27 -0400 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 43AHn5gC015648 for ; Wed, 10 Apr 2024 18:25:22 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : content-transfer-encoding : content-type : mime-version; s=corp-2023-11-20; bh=hRVYR9OX/ze9R1i7zx/IJQ7FG1PrhTD9HbzpHbojLRo=; b=e0pcXF9TAM/Q1JU6onPiy2C7ZqvHe3FIDgpof0OqFJhXpbbQPHT6VrLniOPVwFwp/8Qg rJ9wrhD+tC+3xaptGUy8/rgZZReeuVuSfqvqMajN+pXU6leoanFegxSo75pqHiUUz10e +/JwBPCrF3zbWS2oujX7x+PWdAyK/eT7inJ5SIQXumGeo0OMMPFc1iPg2qYmv8lwyvHk YrWA6V+2NhRjb3t6UKpvS6NMvdhRp4t5ykyVxp1GQyB4OMkfr2GLObXylLHbX4KUQL6x I/LpkKPmmsyzkkhqBhH2O7por6jykXVlBqGa/VATfLtepzRTiBGtGU41QO9hAfIHCqQY 8w== Received: from iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta01.appoci.oracle.com [130.35.100.223]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3xaw6481md-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Wed, 10 Apr 2024 18:25:22 +0000 Received: from pps.filterd (iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 43AHqd3m040186 for ; Wed, 10 Apr 2024 18:25:21 GMT Received: from nam12-dm6-obe.outbound.protection.outlook.com (mail-dm6nam12lp2169.outbound.protection.outlook.com [104.47.59.169]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3xavuetjrk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Wed, 10 Apr 2024 18:25:21 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LE0syhwIyfVJVBM/l42JeLtaCFweihovS2Up/uj3TtPvm7kN6VJSrwJTWMDKkp2REWmA2TlqVXbkMQGCzLv9AhPAuzgIee291d+6aC8FAxYpVuUvKfas9D+eKs+BMoFGiwgSwET7BdYKxj3pO8unRJ0VXyz63SqhfTSH9gv77kTJv60QMz2DQlTETW/U9NIkp+FO7cZrMFO4GJ2/U0+uu9NsLzvJw5ujhCxBNpwglPyedDGC8yvf195/mVtKZblyi3aVD3KvYbA7JGfKvUFsqguvlFv5lxsEHQQGHK9M3O/4O9eZSbsJrUqpQRWypV4CyQardujG/smp7ErvYi203A== 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=hRVYR9OX/ze9R1i7zx/IJQ7FG1PrhTD9HbzpHbojLRo=; b=WhOc/dur/20PEf+24591lNAxsY6ywSY3mtvV6LIK1F6nkBTpxjefHAbipuC05e6Y9F4HBAQNllZ+q6jY3MZ5M333quG5eIQsgJUhiqGgKsSrjWVR//kclgsfTmqZld+QLKw13f2/P6yRGcatCymO3+PsTivvLS6jZzXiEobjumvHp0w6c0/AQ4v9s0ALiO7jZvNe1yshfZvvdJ7AdS+MT37Y3uRnlFEhlB9Ho5ANjEnfw5glkJ357gPdmRWjGZ4JkkreDYey1rtB7OFViVJr+CYWRyirJTCJ9TvxaEfqYJ8jXGo7tGUiNXRKdmmyram1l6XOdfeB+p8rh5AGKE2kcQ== 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=hRVYR9OX/ze9R1i7zx/IJQ7FG1PrhTD9HbzpHbojLRo=; b=zmbjOYezQLRUJz7IswEtDcdc4ObsYswhFel/bvFDWtUSkLj0I7SzE1giDjwOtzD17EXx10PQp9Kt5ulWFcSiEKIF2H1ZVBzUqKTL6B6Ww4VNecgrxD8gm6h6Rn6PyebooDHBfZH1kdehXNttMN9rFxjm+JJQCB1YOWasXIMtInM= 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:19 +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:19 +0000 From: Indu Bhagat To: gcc-patches@gcc.gnu.org Cc: david.faust@oracle.com, Indu Bhagat Subject: [PATCH 0/2] Fix PR debug/112878 and a BTF issue Date: Wed, 10 Apr 2024 11:25:09 -0700 Message-ID: <20240410182511.1528093-1-indu.bhagat@oracle.com> X-Mailer: git-send-email 2.43.0 X-ClientProxiedBy: MW4PR03CA0058.namprd03.prod.outlook.com (2603:10b6:303:8e::33) 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: 6EE+8uUpC69Av7KC4lBYhbZXm6O3FIaFPd4d75bC101nzZARlDgST1xTBfaz90Rvk05dVWN0eNYpDEoxzosgQbgjiChE3G6PSzTxSXl2x9qcpjNvtkPnsZj0TwCzCbESHegh+NDge31vJqEHkOEMAgRmgm005+YjTR11xokl496uk7fP+N69KaDFxy2JJuXIvF7vR6jtdrRaStv+9QHsjeiSSSXvbCzSAoeBFsZiMJ0RTuP0h0mxuvc+Ki83ywMQXUp8PBGu8nLMjEdEDPcN58ahz9yuw4q82UVdxOdc4My7SHikBEeXUW9x0MfFBeTXpNNcHikj0Ii9LuhqUxqsKNRac3NDTEpz88VF8+KByDHXSLNoCYUHsWtg8HyrlvMhOYf4OzmgjOS1MCN74KPvJAW0pm6PKTzY6Btnt4ITQxwtrygucNX91eKI+CvjxOKlHa/H/EUMNWV5fKpq2IknZ4HyigjM339AQcPa62OIL0O88Lt2SZT0zRrs6iurGMaSbiuI2xT+gDSMoMCMxxpFJ8pGHNPZk5uMIwyhgNndWhGAREK8m5xpHoqqgxnzNAoPAOG45ZStaf5wyy3p5eFrZIlOtnvK/5nf1pAX1Al/MFzjrjVwV4bSc+Bff/7Z0zrKy5uiwHlRrpnfflo0W2B15Ga26FPgscor9mprgCX/AMQ= 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: RuRcDsp1wRExSrvN/clXDetB0hSmqyaCPeKjGDX3J04pIqJTXqeLyM9Fuf0bgBfqFR3K6OqEXUSBCJLUq/TbrsMdCAZC15csQVcy7hDfTP4woZTRsLw2rCtJLqVE63z+HVw7EBrylOlCfX93qnixwTKFDHnG77jdQVoBBgKMPADVQSLIABRv5ikj99Npx1pBH39KhvCViw4bB8ixjnftIWv5y2WuXXAMyPBt5ujhoUdxi1fT2ug9k6pohQdv+gkMJLQbslVokQAkK4/dh75yfxaVJL81/inzyXydzD/HRXDkq4qqJ3ytHG3cTMaJDZ/kKIGWu6zsyfipH7nOrh9MCJOhaBemGI945KGN7bW7KdsssJ0KRlGY84bs0nRaS4mgNrhsADmG3iiCrJE6TvHB7Xt0WG96sog8YS155Nf3alYmKllncjWuB9C/j7g5WubKSjfLksGAcK3FaIzqp9WvM/GyPssjXhpL7mQir30WBzXmdN23zYk8UZNa9Ru5f2OkQtHjoJedzw5uEc32eHe3jOj/7SBNCSKn4uacjH45NG7cAnWoZyLL2YQ32NkIHInpjOvIm1InS8PmhziweOuofuQTNWJpno9yynE0i5prkQQnOVt15fxoLe+Z7bhGLAsOOXHGxbRaWccU1QegvwOClZPsKjWEJuUAZiRVw2/FjsxhP2XjxPyRTXNuzp5sPRphOyCBDiZrcsJdmkoBgUISgbZOTfX2fbVkDik4eWroRtnKVuu5lModGSrxKC4lP4SJ/HJ3WAwyKcpAOV/b9nqT3P3Ri1G4BqFQsnT7K6NP2cwqcs3pJ61eOJ9k1A0X0jP7xDHe406xQ8mPVLbn0Radzq5LPtNoN6nXRoDj7HDKhdyqdzQWiI/rQPIDJ9c2ZsAE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A5E+yPPsDXr+T3lSwlDQktg3XcNCfYSYHNxikvX1YDwQHFO7Ep9g+AiOcDDmCRLw0sh/LPuzGCwiaFNU7u35MhbAPolffwpLgu72WYQPsBHSzlzzSw47hS/tAC7jb64rK2z17yPzRtiE/53Vxdils/27vP4/phpdRU7nKVfeE4MRpzQcsyjtCb/bdauJJQwnT9CIvtqG21cG6ujEXDWHewDBx337Xysy3xK2tZB6zaWjUv4ayZWvEmW2+/ZVFv24ZQWmezmAW+6Zv//5dQ1bmw4ZM19LxxdqhU87n8cqoBWS8rQK7f/4sPePl1Qz8Ro4XDrc+FVxO+53749DqgVaTaqVYaNz4A5s+f16e655XCuyZM= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 28370f2d-5a35-4fc7-94ab-08dc598b938b 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:19.1507 (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: wUmrrakQ57fMbFDzKzKWx8+Yoh1dwLUiihN5F14xtKHUNcVOdRKyxGbE9LFluT308SPLmHFd7vMGcok5fknBdA== 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 phishscore=0 mlxscore=0 mlxlogscore=999 bulkscore=0 suspectscore=0 adultscore=0 spamscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2404010000 definitions=main-2404100134 X-Proofpoint-GUID: pPPOR7Nk0UKQfPv7608apYAUihfZq74k X-Proofpoint-ORIG-GUID: pPPOR7Nk0UKQfPv7608apYAUihfZq74k Received-SPF: pass client-ip=205.220.177.32; envelope-from=indu.bhagat@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_H4=0.001, RCVD_IN_MSPIKE_WL=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=-6.7 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.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org Hi, The patch series includes two patches: first one is a fix for PR debug/112878 and the second one is for an existing BTF generation issue. Testing Notes: - Regression tested on x86_64-linux-gnu - Tested btf.exp, ctf.exp, bpf.exp for --target=bpf-unknown-none Thanks, Indu Bhagat (2): ctf: fix PR debug/112878 btf: do not skip members of data type with type id BTF_VOID_TYPEID gcc/btfout.cc | 5 ----- gcc/dwarf2ctf.cc | 15 ++++++++++----- .../gcc.dg/debug/btf/btf-bitfields-4.c | 6 +++--- gcc/testsuite/gcc.dg/debug/btf/btf-struct-2.c | 9 +++++---- .../gcc.dg/debug/ctf/ctf-bitfields-5.c | 17 +++++++++++++++++ 5 files changed, 35 insertions(+), 17 deletions(-) create mode 100644 gcc/testsuite/gcc.dg/debug/ctf/ctf-bitfields-5.c