From patchwork Tue Jun 11 12:42:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Victor Do Nascimento X-Patchwork-Id: 1946304 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=selector1 header.b=c1m7w2O2; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=selector1 header.b=c1m7w2O2; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Vz7dB3y5lz20Pb for ; Tue, 11 Jun 2024 22:43:26 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id D0F90385DDC1 for ; Tue, 11 Jun 2024 12:43:24 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR03-DBA-obe.outbound.protection.outlook.com (mail-dbaeur03on20601.outbound.protection.outlook.com [IPv6:2a01:111:f403:260d::601]) by sourceware.org (Postfix) with ESMTPS id 71020385DC32 for ; Tue, 11 Jun 2024 12:43:05 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 71020385DC32 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=arm.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 71020385DC32 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=2a01:111:f403:260d::601 ARC-Seal: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1718109787; cv=pass; b=BNZoP488e2CT3E+AvlOhHTowuzU0NwrFTJeFUM7NwD0dN+UkvIu34jpSIh2VqgBrS53h53giPfQPvRrE7nz8Grx7pcb8R9cSnBVhESTmr3KYe/XgHMvzVsV889+Y4k9IocxlqJTdGsmKqYp3J9zSc7H9ql05Nh7aSPXxeU6XtY8= ARC-Message-Signature: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1718109787; c=relaxed/simple; bh=ZpLrpJelOQnLMlTCI/5VOe260uylHPDSQnMEX3u08Us=; h=DKIM-Signature:DKIM-Signature:From:To:Subject:Date:Message-ID: MIME-Version; b=oi2u+fJqJpq43RbNvP02yG8uZ7OAVgo0+0FJqy1O7qAkIDHSuJT8PIReG14NSZyh8LZN6xujPYYVROnPHr9bJ/KEBdNjm+Y6u24EVM1Cdtvq/WaBrCKfiqXvjHy6N6Lo9mtX76Vs4PddyPpfUwAZYdYP+p1ifjwByJTSbTQQ8l0= ARC-Authentication-Results: i=3; server2.sourceware.org ARC-Seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=X+E35Ov7JdYLl+YoTfouYegv+aR62bJjp2a10PoeT/4fEaPAScIYB3OUcXlRTe7Iy8gq33uCOY8461zTEi6+eG1tIqqdf3dUl5yqXw/3GniwcVtC2iwkpxwSELh4Kilm5yMRcUVrFgAXS/OjEcKIJhChovzB3/hfYCwM7cZA2mzEdva6UCwLZF5LO+x2i5HrbnK49YNHLlDG0DMgl2Ol/nsTcTccFeyquEQp0IyxiN4qiXdSvlnjNCBq3gowJZww+2OrFWbxUKlr7dct4gtHgfnPZkGVZ2IiisAHjKPh/zv2uNKRE8zw1yYEM/3BMuXlhdpNClhQHcBeISuNBCsTYA== ARC-Message-Signature: i=2; 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=K5MmXsInteDzagiL6QErn7BOMeGpdUNOVxE1U9iiIU4=; b=VMLWv5fbSeALdOtxEhoLHWFoajZCe1ugpnG73vZ9Io8MTE8hDosTo6kfNl2zaf6MY1d85Vf+LpybMZYSPbpMumLnTyuI6bzvcRUdAEi2TTq8cq2+Qu8hRcenhKf/PQcLsmpfg7yc7eDgw3E7jJg1wEiX6F47n1hYGSysHTRQcOhlpdEq+F642HT0SYmHMy9rtMHaYMwry51jKXpdQAdWjs+D4fn6TtudaLGgoujOO8bTqNuxpwnW1DqzXF1jVE+lvarD4jdP3djsMjXRqA4etJoqw4fYAqhfG4vbRklQgD/Llw+75IP6ezLNe3mh8+6wSQ8n2Mx2KK6Us3l3fegMyg== ARC-Authentication-Results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 63.35.35.123) smtp.rcpttodomain=gcc.gnu.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=pass (signature was verified) header.d=arm.com; arc=pass (0 oda=1 ltdi=1 spf=[1,1,smtp.mailfrom=arm.com] dmarc=[1,1,header.from=arm.com]) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arm.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=K5MmXsInteDzagiL6QErn7BOMeGpdUNOVxE1U9iiIU4=; b=c1m7w2O2j3IbsukkmfuBxaybwO7of2zDjEoZnHEZKd8eGbVKLE0ApECdba0eLE6dG8GgY+pgQNb8qqdyjsXqdbkETELYBsJfjoQpAKb3GGjpAZ118vzIdQmgi8GfAmza29uU7/ey5kfDnnHdKWJslf4FxF9z42drz9isht57D1g= Received: from DU2P250CA0017.EURP250.PROD.OUTLOOK.COM (2603:10a6:10:231::22) by AM9PR08MB6259.eurprd08.prod.outlook.com (2603:10a6:20b:2d8::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.36; Tue, 11 Jun 2024 12:42:57 +0000 Received: from DB5PEPF00014B98.eurprd02.prod.outlook.com (2603:10a6:10:231:cafe::4a) by DU2P250CA0017.outlook.office365.com (2603:10a6:10:231::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.17 via Frontend Transport; Tue, 11 Jun 2024 12:43:01 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=arm.com;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; pr=C Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by DB5PEPF00014B98.mail.protection.outlook.com (10.167.8.165) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.7677.15 via Frontend Transport; Tue, 11 Jun 2024 12:43:01 +0000 Received: ("Tessian outbound 949243bb8c19:v332"); Tue, 11 Jun 2024 12:43:01 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 848cb43457fea463 X-CR-MTA-TID: 64aa7808 Received: from a4d970a5fda3.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 452EE40B-6A77-4DA6-BBC5-D06254514CC7.1; Tue, 11 Jun 2024 12:42:55 +0000 Received: from EUR05-DB8-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id a4d970a5fda3.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Tue, 11 Jun 2024 12:42:55 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QYAMV0+OW8LQJX2MHdffEc37vSBP7tFZLuxCdFSqGB+ghcX9059udLzf6IKKb6S86+0J9LA5v1bR0+o1rA48fDgp5pn5VXUgq7DVQ3XG3WT+ubikSp2k3/IWS5towKpcf4eLFOVafNcHsC2mp740myO47GLCOqXbmsJFWgZAZDYE0QNIPK89doKl49iq9AxtMt1wXVZqhfjKBhNuTr0acrJ2aR+01nKMjFkK/FId+RgRxipILx26qoa2bSXE8l7nos706xv8U6fpeuH88rOeLPOQIpZmTcFHHVv/0qb2MftBOTTDkh8ltz8xGNuCOIibdcGajrv/TW548W9j0zBAWw== 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=K5MmXsInteDzagiL6QErn7BOMeGpdUNOVxE1U9iiIU4=; b=NCzTSE+DQKZIHG4NbAXLVkZdaAfeUmIu4WR5MnvSolRGjM797PGcLE4y0W2kjk1Vml2P0bM1EarOWF89ByhQn0tnatePIHI50+GB4ra1k8QZazOH8VrVAO4KFwjczt0EJV4c5uVbmkq7futxYbwkxts2772LjKQI0JsCWTFz6PjlxDTlYJpLuNt823wVjewEnG++ILE5mkXEaaNpDL+eUZO59SpviZ+Hpx7E+GmVS67iCoT4kkxlCGapFHo2pm9hryJ0hyR7xzbS/ZuIMEUJ5eWCo0EdxQf+bHmUoihKQrzMt51TScNohjswFSgp3LbZ0p9HcciXAh8fsInWlUClYw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 40.67.248.234) smtp.rcpttodomain=gcc.gnu.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arm.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=K5MmXsInteDzagiL6QErn7BOMeGpdUNOVxE1U9iiIU4=; b=c1m7w2O2j3IbsukkmfuBxaybwO7of2zDjEoZnHEZKd8eGbVKLE0ApECdba0eLE6dG8GgY+pgQNb8qqdyjsXqdbkETELYBsJfjoQpAKb3GGjpAZ118vzIdQmgi8GfAmza29uU7/ey5kfDnnHdKWJslf4FxF9z42drz9isht57D1g= Received: from AM7PR03CA0027.eurprd03.prod.outlook.com (2603:10a6:20b:130::37) by PA4PR08MB6095.eurprd08.prod.outlook.com (2603:10a6:102:ec::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.36; Tue, 11 Jun 2024 12:42:49 +0000 Received: from AMS0EPF0000019C.eurprd05.prod.outlook.com (2603:10a6:20b:130:cafe::9) by AM7PR03CA0027.outlook.office365.com (2603:10a6:20b:130::37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.17 via Frontend Transport; Tue, 11 Jun 2024 12:42:49 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 40.67.248.234) smtp.mailfrom=arm.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 40.67.248.234 as permitted sender) receiver=protection.outlook.com; client-ip=40.67.248.234; helo=nebula.arm.com; pr=C Received: from nebula.arm.com (40.67.248.234) by AMS0EPF0000019C.mail.protection.outlook.com (10.167.16.248) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7677.15 via Frontend Transport; Tue, 11 Jun 2024 12:42:53 +0000 Received: from AZ-NEU-EX04.Arm.com (10.251.24.32) by AZ-NEU-EX03.Arm.com (10.251.24.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Tue, 11 Jun 2024 12:42:51 +0000 Received: from e133397.arm.com (10.57.72.46) by mail.arm.com (10.251.24.32) with Microsoft SMTP Server id 15.1.2507.35 via Frontend Transport; Tue, 11 Jun 2024 12:42:51 +0000 From: Victor Do Nascimento To: CC: , , "Victor Do Nascimento" Subject: [PATCH v2 0/4] Libatomic: Cleanup ifunc selector and aliasing Date: Tue, 11 Jun 2024 13:42:46 +0100 Message-ID: <20240611124250.1390575-1-victor.donascimento@arm.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-TrafficTypeDiagnostic: AMS0EPF0000019C:EE_|PA4PR08MB6095:EE_|DB5PEPF00014B98:EE_|AM9PR08MB6259:EE_ X-MS-Office365-Filtering-Correlation-Id: 3efa4e2c-f3b3-4e5e-e10e-08dc8a1407cf x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; ARA:13230031|376005|1800799015|36860700004|82310400017; X-Microsoft-Antispam-Message-Info-Original: 9BTCzXo/RKv7lm0OXMK9sslQ4Xt+mXDHfutQKf1R16/1ly5W1mvvuG494WwGfwn4SrDj4n3+GlGQFIotBBzJO0OlqMbY2lGY6yFp50bED0vRN3jrGlXv8dfTF9kSqpt9k5WIypoegKuSovtKQ5QxQ+X00qoIz9mpLMZJ3v2zsLUCa2a4feEXRn6JKuPzPz/NBtXV7WuoXaYrBh5eTsEmTTHABNbEv/9XMLcyRcEA/iHImBL6cUebEkg6+9pqiKIbPrmgvIwAa+uZ4rdjag3/Sc0eZGtTWj8zibFARsS/mfgFC5VBNmht2LODquyGJifpEffXjxYmfx9yPSFGfU8Rl7VTkB1mPhmQyIrs1ZZ4gR0e6oEx6PSthU1jQJe5b804tV2ukQDifGNwBxTG0ZceNXxnoAc9HdMHDuqmXIag/Btv4orrjfYXPNxL9DC6Qvejz67n4Hjn12xHasQDi3nNM2JBLBR9THSmU8OIsYsKHbieEsvI14J1x+ePZzv26c/qqRs7OeBzUiKJw2E6raYg1c0ovLn0seFJZ7nTYsOk8gqsSbH5diustq5gZSPdYRmLRavwxbBgJDBS/mnzxSEs5hJ/XUvclOvEgAUZoktTYr40EuFg/Rj/LglEMsUjR1VYsVB6P8MW3dIRXzBtmKbGnUHKHgAlh2upzKGaQuOKAhrNWgLPDllehyKUigjQnOXIB+EOvxPpKpGGesOzw62QEjcf+yxjetVrY7/JIifcI+b9b3bVAnQpxvgSfqPAvjWqJVqKKwg6kdyA6ie/J+jnVQW42TfX872Zf6i0pGjJW2QZ5n+RosKsPRwLKE6bKtWDLC4aYfsADlD+lN4uWEuaYZpH0Zp+0fD3C2FykJtTWprgvgHd9fLawzvcav4MfbpAOdJH0lQf9o9BKs05qTeOL0y5tZJWIS9h4WkGb052y5jilAPi22LUskjFJ/q/gUO7fItKsevYImna9tQAGIwJKiYF6daiNaIUCuOtIy9Qe2vZ65KfudmTpRVXhhSuUAyHp1Z+tkinRPLEkMJ7L/65rhHvhACaPZsW+dj6K/Pnu75hL/KbsWOkrO9JGunYwdqQR6/r8r//AVYOhm9fPYn0wwQx0O2S5aIhzpr1bf4wlikMsdB0lksP5tM9eNDmZwpa6m2s49wgEJWVN3uEsoUIt7wCEZagRBbws9AfQaqNE2OGIhNNkoibKa1m2+I5o1R6CyEJ3smY1idgJZnm6jRIsLcosXvfVEbvHXoZ84hhMTQ5peTkUC5WEE+UbmY2K0FKagcrbKVbHxQk46tK4Ur87c/qP92UEYUOLpyyQLR3qBd4I3LVjWacYNkeU8Vr9PJmnYR2ieZlcDRQB4IvTJOs8no1QGcM+oIae2gUWJWNln9PWhpDO0VRnU7VP6WiWkkTHUrZXRmz25PukyQshIJd6A== X-Forefront-Antispam-Report-Untrusted: CIP:40.67.248.234; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:nebula.arm.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230031)(376005)(1800799015)(36860700004)(82310400017); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR08MB6095 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB5PEPF00014B98.eurprd02.prod.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: f7b91ae3-67d6-4094-11a7-08dc8a1402d8 X-Microsoft-Antispam: BCL:0; ARA:13230031|82310400017|35042699013|376005|36860700004|1800799015; X-Microsoft-Antispam-Message-Info: WRjwsv6vQmCN6gjC+3byop8ObqHeBf+IBpes2Kjqj4M/cserxGU1xcnmRVkM3vFdU3JwYN3EgVun0ERns1H/nlDdaJF8G5VIBGxfw5ZReO31TycuSKw7nlwgSXHDSTkcpPBDHamUciKDOKdjOlyfPvKhOeRjAoF7NaoXaSx0RMQobm5tQZyu5va0wY5grY1dwhjCwtZtK5i3N1bh6DGzMx35sTDPDPX67x3ohipoLLz14Xg4WuM8rgiOfu8KVIKdBWKcr359Nuk6rCRp2QTFBqq6NIpmnjs/cBBZtb+hWhVb4tzymugDHsxpQaIxSwGgasxRGj1qOHpYE54VoEiNupr0x99Za1XPsH43Pqui+w4wV6h9JbnDLrxLmotelqxHdUXadSH12LuZx+Gk06MClvb6cFoCuRvPcItwtn996Sj3rKueKMAsK7rrKCxGIzpHM03At6OXUYVs7OnNFxmysEqChPV+gbDgycGgY1VZqQkjPYzbaODEWkh8ZbK/QWngbd2P431SR9nt9tGfQIAYR7tKdamzkZp5TE5iIttc766dMx9w22dVfKCPCwAmmdCtRQVL7GX8RbBT6zBAC9t8UwtqgE6epKQ4Rm5AC+GGuetJKREpjpS2ZfyD51APBdwlCj8SnP/KxtoGvLe0uhcz9/gAW7/KBQOWccKo9i2hhVrzLBUlqpQKjz3yKLuHnvKe2yO0Ol8rFSdZoAYtmQY9TxQxjMCTz0v9aTnjn5FT1DFJyMjp/BgtJZudHYrmd4x6hvUjO4Gd/xCScrEmiZpyQJV5RkbHq+/5740kHgGm6K5V4LyZEklDukB4IWjX3LwO8Bb252wIlV5KBX8i0SDFjnUCF3Dp+LucYZjZAq5DGE1o0T3ziXw2/qzCP8YPEmKrGuH8x1pE2DQHQ+7obBpmC4JfeAnG+CiCqjuGfQFQjstGaLImDx2hADYvfGQRyg4S5GlxtTON8IcP43W+dslU86XS+iCh4kyr/f4VaWIHmqN6Hf/MDabAEgg1gOIGy07BgUKbZgFWZjzs3brWXl/8vdBZ3PX2UgiaBfEyJov8ZbyDDmT0uqT7w92WUMdvfBTEq1+1SV6ZuGmp02CVlBHWtOgsz6Z0+zyyzxKdwrq0qSUbKdxfM74k01P0Nb6c/7NvPqyQimP/QzxDVUDtd5SpPtvDrAQJo7K2IcISxTvmNBRhfDEG3dFnveq4U6xl4QzNcIAuOabazc5LpbGaFneyaU0akH0VcXtQTpGCFG0/hA8RWazCA+V9VEDDgI6w8YYbM+eMbLyRpu1if9o75YRtvsVmCqbo/iZofS3IHXOk7pGRiT90ZQOvZzYgrJrLg2Do/8V9jVcKpweat3SVtO9GfcJtDsq1wbZeXT/nHHpg0Z9Tsq5aHt9bSsQu/ja3xjfDYMXdUi4L+Hln19TddNDm3Q== X-Forefront-Antispam-Report: CIP:63.35.35.123; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:64aa7808-outbound-1.mta.getcheckrecipient.com; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; CAT:NONE; SFS:(13230031)(82310400017)(35042699013)(376005)(36860700004)(1800799015); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Jun 2024 12:43:01.4810 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3efa4e2c-f3b3-4e5e-e10e-08dc8a1407cf X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[63.35.35.123]; Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: DB5PEPF00014B98.eurprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR08MB6259 X-Spam-Status: No, score=-6.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, SPF_HELO_NONE, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY 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+incoming=patchwork.ozlabs.org@gcc.gnu.org Changes in V2: As explained in patch v2 1/4, it has become clear that the current approach of querying assembler support for newer architectural extensions at compile time is undesirable both from a maintainability as well as a consistency standpoint - Different compiled versions of Libatomic may have different features depending on the machine on which they were built. These issues make for difficult testing as the explosion in number of `#ifdef' guards makes maintenance error-prone and the dependence on binutils version means that, as well as deploying changes for testing in a variety of target configurations, testing must also involve compiling the library on an increasing number of host configurations, meaning that the chance of bugs going undetected increases (as was proved in the pre-commit CI which, due to the use of an older version of Binutils, picked up on a runtime-error that had hitherto gone unnoticed). We therefore do away with the use of all assembly instructions dependent on Binutils 2.42, choosing to replace them with `.inst's instead. This eliminates the latent bug picked up by CI and will ensure consistent builds of Libatomic across all versions of Binutils. --- The recent introduction of the optional LSE128 and RCPC3 architectural extensions to AArch64 has further led to the increased flexibility of atomic support in the architecture, with many extensions providing support for distinct atomic operations, each with different potential applications in mind. This has led to maintenance difficulties in Libatomic, in particular regarding the way the ifunc selector is generated via a series of macro expansions at compile-time. Until now, irrespective of the atomic operation in question, all atomic functions for a particular operand size were expected to have the same number of ifunc alternatives, meaning that a one-size-fits-all approach could reasonably be taken for the selector. This meant that if, hypothetically, for a particular architecture and operand size one particular atomic operation was to have 3 different implementations associated with different extensions, libatomic would likewise be required to present three ifunc alternatives for all other atomic functions. The consequence in the design choice was the unnecessary use of function aliasing and the unwieldy code which resulted from this. This patch series attempts to remediate this issue by making the preprocessor macros defining the number of ifunc alternatives and their respective selection functions dependent on the file importing the ifunc selector-generating framework. all files are given `LAT_' macros, defined at the beginning and undef'd at the end of the file. It is these macros that are subsequently used to fine-tune the behaviors of `libatomic_i.h' and `host-config.h'. In particular, the definition of the `IFUNC_NCOND(N)' and `IFUNC_COND_' macros in host-config.h can now be guarded behind these new file-specific macros, which ultimately control what the `GEN_SELECTOR(X)' macro in `libatomic_i.h' expands to. As both of these headers are imported once per file implementing some atomic operation, fine-tuned control is now possible. Regtested with both `--enable-gnu-indirect-function' and `--disable-gnu-indirect-function' configurations on armv9.4-a target with LRCPC3 and LSE128 support and without. Victor Do Nascimento (4): Libatomic: AArch64: Convert all lse128 assembly to .insn directives Libatomic: Define per-file identifier macros Libatomic: Make ifunc selector behavior contingent on importing file Libatomic: Clean up AArch64 `atomic_16.S' implementation file libatomic/acinclude.m4 | 18 - libatomic/auto-config.h.in | 3 - libatomic/cas_n.c | 2 + libatomic/config/linux/aarch64/atomic_16.S | 511 +++++++++---------- libatomic/config/linux/aarch64/host-config.h | 35 +- libatomic/configure | 43 -- libatomic/configure.ac | 3 - libatomic/exch_n.c | 2 + libatomic/fadd_n.c | 2 + libatomic/fand_n.c | 2 + libatomic/fence.c | 2 + libatomic/fenv.c | 2 + libatomic/fior_n.c | 2 + libatomic/flag.c | 2 + libatomic/fnand_n.c | 2 + libatomic/fop_n.c | 2 + libatomic/fsub_n.c | 2 + libatomic/fxor_n.c | 2 + libatomic/gcas.c | 2 + libatomic/gexch.c | 2 + libatomic/glfree.c | 2 + libatomic/gload.c | 2 + libatomic/gstore.c | 2 + libatomic/load_n.c | 2 + libatomic/store_n.c | 2 + libatomic/tas_n.c | 2 + 26 files changed, 303 insertions(+), 350 deletions(-)