From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id fUlvLvzt4Gl7MRwAWB0awg (envelope-from ) for ; Thu, 16 Apr 2026 10:11:08 -0400 Authentication-Results: simark.ca; dkim=pass (1024-bit key; unprotected) header.d=amd.com header.i=@amd.com header.a=rsa-sha256 header.s=selector1 header.b=bC05J0OK; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 975D41E0B1; Thu, 16 Apr 2026 10:11:08 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_VALIDITY_CERTIFIED_BLOCKED, RCVD_IN_VALIDITY_RPBL_BLOCKED,RCVD_IN_VALIDITY_SAFE_BLOCKED autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [38.145.34.32]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id E54081E0B1 for ; Thu, 16 Apr 2026 10:11:06 -0400 (EDT) Received: from vm01.sourceware.org (localhost [127.0.0.1]) by sourceware.org (Postfix) with ESMTP id 70B0D4BA9035 for ; Thu, 16 Apr 2026 14:11:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 70B0D4BA9035 Authentication-Results: sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=amd.com header.i=@amd.com header.a=rsa-sha256 header.s=selector1 header.b=bC05J0OK Received: from BYAPR05CU005.outbound.protection.outlook.com (mail-westusazon11010055.outbound.protection.outlook.com [52.101.85.55]) by sourceware.org (Postfix) with ESMTPS id C45C54BA9000 for ; Thu, 16 Apr 2026 14:10:38 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C45C54BA9000 Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=amd.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org C45C54BA9000 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=52.101.85.55 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1776348639; cv=pass; b=bIGYoy+7ybKFGTsZsusGi9k04f6RODILmAwSqdmVujQD7Cim1LFjAxeHP06W1WgmIGWIwJgQj319WyIvOCQhnKUitRoDWgcqpElUGeApjSyMrtnrMId9kkauMNMUDc1WxkoaY4+PtKDMyvf7HcrVy4y4wQQAZp4MZ9LjUHb9o6M= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1776348639; c=relaxed/simple; bh=63DtsQ+VYw8xl7hvv98PsfPi32gku36IQozo6ImOWsE=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=SWm74+o9HWCebv/46cZkd6m20ZovXg3wncNnaJvH/1/yZ5zTukyCKlhVRAH82cwBr7m256r1xjcIMh6Qke9D02KS+6J7KcnmEu2KiHK/XBr+y9Pbd3ttEuslWic2DsLU0OEgrpTb9e9CyZSmQuRXYRg27EDBCQyGHlL/pL47cYw= ARC-Authentication-Results: i=2; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C45C54BA9000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=JjICplIdoE3KKcazbLOEk14oinvcusbl+KN5vxgLKm+ZkUoLgkHUOYxqyT0c2sdSHN2eYe7MFyuF/jTmiEqSOruk7uezdvR6p78h/gl+x5ff5VBQcTw3ndpYOldqQMl88ELxuuSFXswRI2Y3r2rbcpUZixDSpUbU15ahc9qG0IMgFuFfUKFKlk1KywhYEw9Vcia5mp7CK3KJC1D3N8Ak27PtSAk4RlS6UVXncL7J/HKQS2c6dvDbTW39st38dbsVRIspQ1kVIzeZzwQdD1IMencWE0OZbL3YnsFkZ4v0igxOUKZ3NmLTiRkQcTWtV0ZBmHVz7LmlA3NOASJN4dMqgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=PXcaGrkWNyz1tbU3APtPPxQd4oSkI7ND45Yu5RbVoXs=; b=TAz4J3sxgwLYeK+wXnLSU+r2yndr+Ath1xZMCNxG8DcfYFgMZ0sHEPKMHdzixYhLVsdEoIVItRtLuI+t3a12hNgP/0hNehXIq2cp0o4stLB9GARxYKhnkknMpEuMWyvLiN/4FfxK26v4OY5F9UvQJkOd0fCT3CtJPq3/hWYnP/v+ASMzCJTI9JpxLN5NyJbnv6sOsFX4zB/D958SnU2eTfSBvcon4u4FFOT1QMLZcROG0QdF0Vn6wpZQ2E7UoUGSQzqBSAaDQ4uC7xeeagSG9N0eED+VwbYKrb0NajV1ADG7YF7adMDP62P4riKh3u/S/CcDuzFZ9ChfhjbCfjODbg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=sourceware.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=PXcaGrkWNyz1tbU3APtPPxQd4oSkI7ND45Yu5RbVoXs=; b=bC05J0OK5nc631mnzIRqB2e4NhzD+RqfrUkQ+iZxhMLSAPZwPKfxHN/hJsde5SmmI7jI/gQQX8L/n6n0ZQID7K5KeajUgcIZcMlgC1y7ZZ0mwzuFxtsKK3f3PcPoGWXE/ny3GTzk3qkPYA1QXrSXaTxBG6b2rfhpfpQZQarzTu0= Received: from PH1PEPF0001330B.namprd07.prod.outlook.com (2603:10b6:518:1::1a) by PH7PR12MB6418.namprd12.prod.outlook.com (2603:10b6:510:1fe::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9818.20; Thu, 16 Apr 2026 14:10:31 +0000 Received: from SN1PEPF000252A2.namprd05.prod.outlook.com (2a01:111:f403:f90e::4) by PH1PEPF0001330B.outlook.office365.com (2603:1036:903:47::9) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.9769.51 via Frontend Transport; Thu, 16 Apr 2026 14:10:31 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=satlexmb07.amd.com; pr=C Received: from satlexmb07.amd.com (165.204.84.17) by SN1PEPF000252A2.mail.protection.outlook.com (10.167.242.9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9769.17 via Frontend Transport; Thu, 16 Apr 2026 14:10:31 +0000 Received: from Satlexmb09.amd.com (10.181.42.218) by satlexmb07.amd.com (10.181.42.216) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.17; Thu, 16 Apr 2026 09:10:30 -0500 Received: from ctr-s27-hpe-19.amd.com (10.180.168.240) by satlexmb09.amd.com (10.181.42.218) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.17; Thu, 16 Apr 2026 07:03:23 -0700 From: Bratislav Filipovic To: CC: Bratislav Filipovic Subject: [PATCH] testsuite: Skip fission-dw-form-strx with clang Date: Thu, 16 Apr 2026 14:00:48 +0000 Message-ID: <20260416140306.1556274-1-bfilipov@amd.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.180.168.240] X-ClientProxiedBy: satlexmb07.amd.com (10.181.42.216) To satlexmb09.amd.com (10.181.42.218) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SN1PEPF000252A2:EE_|PH7PR12MB6418:EE_ X-MS-Office365-Filtering-Correlation-Id: 7f5fb1a3-601d-4bcc-58b4-08de9bc1eb37 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|376014|82310400026|36860700016|1800799024|18002099003|56012099003|18096099003; X-Microsoft-Antispam-Message-Info: nKL3g+PKDidK8qpU3LSstLwDmoUWkWUEcEoaO7z64DG5dC9ZdW9QVss7m6pvHmjpCUveNrgtdcpMU0dG2SgTjNFAVLsWoKDH6c+szgnwa5Z8Dj3N6aCcsQB+xx7/RAmOVRGkIhmbB1c0zW4owuQgexpTJ2JFJ1prwuNHkaX1grEMw24hQi6oLBcKvumGkKUBTVzvAVFkew21tatD0pbsDeQoFheG4uIS9Rh8p0C8koSNdXGjPYo/bxokKHTYPgyXoOhGUa5HjB+LOYff3pivh2zlyl5BtJaGL6QqK45elaKSmSsVkLy68Ihf8aiDRUKZ4vRAYd2UEcJtYy2mzuIS8WLkm/OBo09YkuWsSm2WNFQhZvg29XneNFf5GZSPTiZwUoEdOj0TSpt730/UjpfLrC8qO3Mflyi/koWij4ijTO50gmc8bJwVI0rmbOT+92svUAzCKdHvpeX6VRUzi2a+Pp/gOoo8HKMRApDu6GxuvyTBOVd0h0RzwL5l7uj/GSuCU9MJH9f5r7RRV3V2RKlrULA05r+Qi4jEJac/ZBLubckbJRE8sfzdi0xnLbtj0i03O6gdWWaWWhWMLhjgl1dvZYg62ErEL3sRvdrRhwXL9G5VjSHGCdXa1aoxjaPEh817oNJSfB/LGO1Owv4Qxq+JdUpFpaD/4xXQaRHvim+2maEthnaybQqT60qGshPNm2uYIZ5SBU91ANTpwWb42jxKyzyKZO+RLrKkKmKSbXfOCf7fZIX6b8m9suRyisGj2VCc/5/v9iUGR+vVJ/4UY0kSYg== X-Forefront-Antispam-Report: CIP:165.204.84.17; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:satlexmb07.amd.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230040)(376014)(82310400026)(36860700016)(1800799024)(18002099003)(56012099003)(18096099003); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: hxmuwkmqBfYBlFay3bS8XEXxURsbKDIHjKI4+W0PHcVsWSHjXXkcEJ/vVDbMMtTFPNjJ8Tb7QBUVnf4Zw9s80sUdm+4HRF+6zUjDp8bOLmlSXYLjMDtSmxgdYhet/bRd0kTeEpRJ7AqaURQmuic0urMm+6YQ6EoJT0ukKk/FFEU+WBgUqKyKmvbIFzw/ZJ8yBxd6Qu70sJHkhmWYjvw+pZfx6FNteSskj/xkTzMzXjvtMiP2YnnBCJnjlOUPktSnPNBPxtpuaWqZ7kbcqwoEiGOWwiJzMhF+qihIJc344QyJyUbZFD3iIMtZj/fqm/soi8o3TNB3U65oH08wzfqlZ5N8pesngHrgj5IAgMmSTF0uoOiLKUxa+dEmJ3xuuliBZjx4hMTaIk20/pc814vdfkw26653jgKR9PUI0uRUxHpUKTYSJzGv/DOAGuzbZre8 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Apr 2026 14:10:31.0115 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 7f5fb1a3-601d-4bcc-58b4-08de9bc1eb37 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d; Ip=[165.204.84.17]; Helo=[satlexmb07.amd.com] X-MS-Exchange-CrossTenant-AuthSource: SN1PEPF000252A2.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR12MB6418 X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org Clang's integrated assembler incorrectly sets the SHF_EXCLUDE flag on .debug_*.dwo sections when assembling DWARF fission debug info. This causes all linkers (both lld and GNU ld) to strip these sections from the final output, breaking the test. This is a limitation of clang's integrated assembler, not a GDB issue. The test works correctly with GCC's assembler, which does not set this flag. A workaround exists (-fno-integrated-as to use GNU's external assembler), but it is not practical to apply in the testsuite. Therefore, restrict this test to GCC only. --- I've investigated this thoroughly and found that clang's integrated assembler hardcodes the SHF_EXCLUDE flag on .debug_*.dwo sections. The only workaround I found is -fno-integrated-as, which forces clang to use GNU's external assembler. Does anyone have suggestions for making this test work with clang without skipping it entirely? Or should we report this to LLVM as a bug? gdb/testsuite/gdb.dwarf2/fission-dw-form-strx.exp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gdb/testsuite/gdb.dwarf2/fission-dw-form-strx.exp b/gdb/testsuite/gdb.dwarf2/fission-dw-form-strx.exp index b0b842fe911..fb39cab9c75 100644 --- a/gdb/testsuite/gdb.dwarf2/fission-dw-form-strx.exp +++ b/gdb/testsuite/gdb.dwarf2/fission-dw-form-strx.exp @@ -20,6 +20,13 @@ load_lib dwarf.exp # This test can only be run on targets which support DWARF-2 and use gas. require dwarf2_support +# This test requires GCC. Clang's integrated assembler incorrectly sets +# the SHF_EXCLUDE flag on .debug_*.dwo sections, causing linkers to strip +# them from the final output. This is a limitation of clang's integrated +# assembler, not a GDB issue. The workaround (-fno-integrated-as) is not +# practical for the testsuite. +require {[test_compiler_info {gcc-*}]} + standard_testfile main.c -dw.S -dwo.S set main_asm_file [standard_output_file $srcfile2] -- 2.43.0