Message ID | 20250203130421.2192732-7-alfie.richards@arm.com |
---|---|
State | New |
Headers |
Return-Path: <gcc-patches-bounces~patchwork=sourceware.org@gcc.gnu.org> 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 D2F503858415 for <patchwork@sourceware.org>; Mon, 3 Feb 2025 13:08:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D2F503858415 Authentication-Results: sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=selector1 header.b=ntLTLmYX; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=selector1 header.b=ntLTLmYX X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from AS8PR04CU009.outbound.protection.outlook.com (mail-westeuropeazlp170110003.outbound.protection.outlook.com [IPv6:2a01:111:f403:c201::3]) by sourceware.org (Postfix) with ESMTPS id DB56C3858C50 for <gcc-patches@gcc.gnu.org>; Mon, 3 Feb 2025 13:04:45 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org DB56C3858C50 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 DB56C3858C50 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=2a01:111:f403:c201::3 ARC-Seal: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1738587886; cv=pass; b=Oeb9eSeVtkw2mR9ALbdr0kOBFqeI30YVI8yJWoxp31Akeb5JgRCHq06I57AcrnBwldSJffkbVKdFgyKn24NCNYEMYmIuIOlSSPUsynngaKW4+/E7L8IGRpbAexzLGKSorL80dNbBO0s8Y3KRR+mKp/vw4ILSO9GRWSPhhHpcjuE= ARC-Message-Signature: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1738587886; c=relaxed/simple; bh=PzJ/Ryok2DuSq2ZFDk/8Kmhj4ijirFt6b0wY9F4BS5M=; h=DKIM-Signature:DKIM-Signature:From:To:Subject:Date:Message-ID: MIME-Version; b=Gux0cWGJvgeA3Y93d9FBccWn1cNCR1VH73lTUyqcQYhv1AOw+eurYQPQgIhNaThqdHQDNp3GPdSIHQx+Ko5+98oc97yESbf39WdISrDnV+Zx4tUWXlW7rsUlRPB+KgF4jVmzddtH8apf0cAic4k5Jn9Rd0f9DhaBh4S76vk9Zqo= ARC-Authentication-Results: i=3; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DB56C3858C50 ARC-Seal: i=2; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=pass; b=vnj6klPdjjgeUgnaDwOGuwIUE2t+VnF6tMpU8Di0aIMIcrYK+A/ZwJ1RFfCsxtMgOtDvWoavgSpRq+HMKaYsDlSRQmbVRYv7IBJdMUDRPVVrUBngK0d10fnUyGOqNoCscJMg64bVN0C5hx+dxGxRjDXHzrTSEUSf0A39Y1hRdmhQsTECk6Xpb/74pIrl+rLOSKrNhiJv+ubNxQFlcaH1JrPwF033oqosBRVT2rFcDYVGx6PqRmb71DEZl9i3D+XwRoVJWTD55l+mkKCkHvaeJFWI3ks/4kBC+xR3hPGshUz5HBjD017R3tpOkplinPwPP8cGAA1NBnUO57bCc3lvKw== ARC-Message-Signature: i=2; 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=2e7nR0hBzznVVocf12tbWp0uZBj6txygRUVPIHo0a4Q=; b=wvwBTldaG4pYn6wmEzWt+3zpLGv3wf9mziHuSjCZzIEhYnWyeWKgC0LgsWrKWuvcRGGi6MC0ozgQ6jLC1EMfx/9O/07lL+3duJso0bfqAhYCVU96MbCw0189iGTU5EAKThFLcgnmhi5Ma8vBETH5XxiOhWp9h1zAHQlLq/REf2c7O8d8TLRC9kDW/nT4fukONR6O68QBkF+EbJc+c5hDJOXhYjVW5FHXJp0v8KPfueKSAdmzSYFjKpQJKEpUBU6SVYgc5LScIA4q/e1Yg4gwXJyjhD5jkpUaGOHTB2d7cNHR8XrLCLXo1E9MBAR+4xCNxuWTFM+K3dANjo4SIydqUw== 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=0 ltdi=1) 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=2e7nR0hBzznVVocf12tbWp0uZBj6txygRUVPIHo0a4Q=; b=ntLTLmYXl9x0+vjyjNwmr8AAoJ75K99bSKAZOoeOgmv4qOJvgNEUzWTassFJtctlsGfWd/2htEnr+kCtJPptp0Lw6cOfpQr74KG4cPV1nUS3ND8ZJ1Cj8DUcMw9OUM1A91Ly1ZqycXZEpiFZwgrihyudWuPE3w0V+lFlNMz3lmk= Received: from DB6PR0301CA0097.eurprd03.prod.outlook.com (2603:10a6:6:30::44) by AS8PR08MB9267.eurprd08.prod.outlook.com (2603:10a6:20b:5a3::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8398.24; Mon, 3 Feb 2025 13:04:41 +0000 Received: from DB5PEPF00014B89.eurprd02.prod.outlook.com (2603:10a6:6:30:cafe::13) by DB6PR0301CA0097.outlook.office365.com (2603:10a6:6:30::44) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8356.22 via Frontend Transport; Mon, 3 Feb 2025 13:04:41 +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 DB5PEPF00014B89.mail.protection.outlook.com (10.167.8.197) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8398.14 via Frontend Transport; Mon, 3 Feb 2025 13:04:40 +0000 Received: ("Tessian outbound 4d4d74fe3cc9:v560"); Mon, 03 Feb 2025 13:04:40 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 4688a6661ae7c13f X-TessianGatewayMetadata: JvrGz1nfVHS6nfNCFVx2LdHZW71Hs8fqL0J0+MqhBTjU+nUB8UOpYVmAf+Cmy4bNTO2fhefscx+KsSQ91tuOI1UcjJmi4dUH94JSTJhMoYSjmKOMrEey7n/t+UxJY+FBz+IPWsVjNdbFmOagthG+m/oFHjkCAXwXEG4+mSlnnUg= X-CR-MTA-TID: 64aa7808 Received: from L6bfc96fae607.2 by 64aa7808-outbound-1.mta.getcheckrecipient.com id ACD9B680-437A-4697-BB86-D2926C246FC9.1; Mon, 03 Feb 2025 13:04:34 +0000 Received: from PA4PR04CU001.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id L6bfc96fae607.2 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Mon, 03 Feb 2025 13:04:34 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=OyzA7Pbaa1FRPamCAu+7ufknSfjZlN6GHEhypUusI/C/PvzvU83wE3N+4P5asSJTkukv5vnejEoKKeEInzu1jDJUQAgmga4aLXBNNqby1SJtR3eH/kGMBAttaeaN0Svxna1OYp89khhSDCqCLi8iCVA7kLNmOQDeKYBMGrdnoabKWYkvamxQwAikUPdbwlFFTaFEGYsSz3cmCzgr2uH/Ju2trdv/yZFZkiZtLzbd79LOdydYFANMBtyD3zlbRULb38QWM1k0mbrDYB74IMF2MbEm227im/fCs14ID4VYDYY+9WGS44819J2PBuraVuZczqcJwVqEgkG+X5pDcaMiNA== 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=2e7nR0hBzznVVocf12tbWp0uZBj6txygRUVPIHo0a4Q=; b=wf4Sjsjm1wRGZqK7ohTsCVWnvGho5KgYqyksy21xpTwi1VtqWfhpQrnOBN5xE6LuAAh6PDOFqtK9nRGZQ4v8rbmWPevzvy2cGimmd4Y+GPT10j/TqGOArX2y67pBL8N8nzpbaQTVPkAVVj3p0J3xI1ircI/XkF3RPnrYIi2mnwtYcIPF5cyXJ3xup1V4JCMDKf5KpBVhZcuHeG/Tn+zaep2DlAtprEyLjWDqRnUBWncLI0j8Fxf5rd1l50f17/4Mn+LQJkdnZqwnjTZWY+TGc7BsSODCUS7qDXPNbj1TL+Q2wlEXua4EJO3i+yLhep8L/UlcExSyyOripmor+vx9ug== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=fail (sender ip is 172.205.89.229) smtp.rcpttodomain=gcc.gnu.org smtp.mailfrom=arm.com; dmarc=fail (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=2e7nR0hBzznVVocf12tbWp0uZBj6txygRUVPIHo0a4Q=; b=ntLTLmYXl9x0+vjyjNwmr8AAoJ75K99bSKAZOoeOgmv4qOJvgNEUzWTassFJtctlsGfWd/2htEnr+kCtJPptp0Lw6cOfpQr74KG4cPV1nUS3ND8ZJ1Cj8DUcMw9OUM1A91Ly1ZqycXZEpiFZwgrihyudWuPE3w0V+lFlNMz3lmk= Received: from DUZP191CA0004.EURP191.PROD.OUTLOOK.COM (2603:10a6:10:4f9::23) by DB9PR08MB8314.eurprd08.prod.outlook.com (2603:10a6:10:3de::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8398.24; Mon, 3 Feb 2025 13:04:32 +0000 Received: from DB1PEPF00039230.eurprd03.prod.outlook.com (2603:10a6:10:4f9:cafe::c8) by DUZP191CA0004.outlook.office365.com (2603:10a6:10:4f9::23) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8398.25 via Frontend Transport; Mon, 3 Feb 2025 13:04:32 +0000 X-MS-Exchange-Authentication-Results: spf=fail (sender IP is 172.205.89.229) smtp.mailfrom=arm.com; dkim=none (message not signed) header.d=none;dmarc=fail action=none header.from=arm.com; Received-SPF: Fail (protection.outlook.com: domain of arm.com does not designate 172.205.89.229 as permitted sender) receiver=protection.outlook.com; client-ip=172.205.89.229; helo=nebula.arm.com; Received: from nebula.arm.com (172.205.89.229) by DB1PEPF00039230.mail.protection.outlook.com (10.167.8.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.8398.14 via Frontend Transport; Mon, 3 Feb 2025 13:04:32 +0000 Received: from AZ-NEU-EX04.Arm.com (10.251.24.32) by AZ-NEU-EX06.Arm.com (10.240.25.134) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Mon, 3 Feb 2025 13:04:28 +0000 Received: from AZ-NEU-EX04.Arm.com (10.251.24.32) by AZ-NEU-EX04.Arm.com (10.251.24.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Mon, 3 Feb 2025 13:04:27 +0000 Received: from ip-10-248-139-135.eu-west-1.compute.internal (10.252.78.54) by AZ-NEU-EX04.Arm.com (10.251.24.32) with Microsoft SMTP Server id 15.1.2507.39 via Frontend Transport; Mon, 3 Feb 2025 13:04:27 +0000 From: Alfie Richards <alfie.richards@arm.com> To: <gcc-patches@gcc.gnu.org> CC: <richard.sandiford@arm.com>, <hubicka@ucw.cz>, <ubizjak@gmail.com>, <josmyers@redhat.com>, <jason@redhat.com>, <dje.gcc@gmail.com>, <kito.cheng@gmail.com>, Alfie Richards <alfie.richards@arm.com> Subject: [PATCH v1 05/16] Update is_function_default_version to work with target_version. Date: Mon, 3 Feb 2025 13:04:10 +0000 Message-ID: <20250203130421.2192732-7-alfie.richards@arm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250203130421.2192732-1-alfie.richards@arm.com> References: <20250203130421.2192732-1-alfie.richards@arm.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------2.34.1" Content-Transfer-Encoding: 8bit X-EOPAttributedMessage: 1 X-MS-TrafficTypeDiagnostic: DB1PEPF00039230:EE_|DB9PR08MB8314:EE_|DB5PEPF00014B89:EE_|AS8PR08MB9267:EE_ X-MS-Office365-Filtering-Correlation-Id: d6eb3f58-df11-46bf-6c4e-08dd44535209 x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; ARA:13230040|36860700013|82310400026|1800799024|376014; X-Microsoft-Antispam-Message-Info-Original: fmPvqK6yRHu4UcmxSKrf2JDRaZR6+nQIi/bMll4zZrVgOfn8u/Ps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LX9elU5t/QyJqIt/fq95wK/2+KIDu3m6/Dil26op6m9LmyhwTf5L1GmeAwmw2GijSA0eK2PhvcJbf/1wxlaBJFy4pWLFEFbdOHY4fBYGGTbqGa5YO+kiRKIuQMNcmBM6Wnh+42t/+c8jJBXRcaLITHEbSi/V4rao/57w4SLmec6VnaDf2u62VDZXqK3QjOGeuAar7hosEEe8aUDGkURVLMwEOXvvSJJz0/aJdvtrkIu/yEXguEWSwSjMT/kmejWEFvWbI9G6EPicWv+cxEOsHYi9nss6vL/J4oGqxZsXPAxtjDEfbLdHZedHvWTrC/5A63cYbqrVns+tIyR/G1fShTBzn6nfGJ2QyjwNf3jTd6PhXL9/v0= X-Forefront-Antispam-Report-Untrusted: CIP:172.205.89.229; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:nebula.arm.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230040)(36860700013)(82310400026)(1800799024)(376014); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR08MB8314 X-MS-Exchange-SkipListedInternetSender: ip=[2603:10a6:10:4f9::23]; domain=DUZP191CA0004.EURP191.PROD.OUTLOOK.COM X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB5PEPF00014B89.eurprd02.prod.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 8fbbbc24-acad-49cb-80d4-08dd44534d22 X-Microsoft-Antispam: BCL:0; ARA:13230040|14060799003|1800799024|376014|82310400026|36860700013|35042699022; X-Microsoft-Antispam-Message-Info: =?utf-8?q?vjwlS6vLuvgZSe9UNmCgoKhwpXzGTss?= =?utf-8?q?//zP7QWvgvSHMpCI0ceio8SXQ+rwsr7PU5Wus3K3/J1YUhpZXQFJ3F4sAun2h1pmG?= =?utf-8?q?g1vxjPvBpXdRyRQ+TBd6Hf4cGHV3rwsgJq5BvwKyEdra211X32mCX4HQ5O8qMXQMw?= =?utf-8?q?Up8s1B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4aD4cLUk2oapEJ+hX/fAz9hfDWGoeRHqfua2+2f1FhGWAeYIPcZcjBJTUQHdsc?= =?utf-8?q?h2XP2NkNbncYcaPLGPE57yW15cx95etsvRmS+ydx/BpR/qepPLWmlYyQ1koOmBDLY?= =?utf-8?q?OuElTNTQyuVeKprUdVshjBHWeZd+Pp4HZ6Dyvj7bVM69eGmVrXFdX0F+YZPZVXC9y?= =?utf-8?q?lgOKggHeJrYAUAPc7LFMplfg0+5Ee2fg/vXyVi7YKRy0U+VsbUaVvMiSqYRYxpsvI?= =?utf-8?q?CjxYFOoKI0eHsoqUpDdAMso7dNb+3ILWlo4y56jhtXmy8chmn0MRiApsvy1VEe9t9?= =?utf-8?q?qyP9mzs1LnVfmdwHhAQNhx2k23XLgPHCcp05MKqcubhahKvOH8MXyspx0aVhYphbv?= =?utf-8?q?1zQd6GR/huMI04HNf0VB3bWLNd1UQIhSOS29jObzK7DpZ8jxIL8wH4=3D?= 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:64aa7808-outbound-1.mta.getcheckrecipient.com; CAT:NONE; SFS:(13230040)(14060799003)(1800799024)(376014)(82310400026)(36860700013)(35042699022); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Feb 2025 13:04:40.5802 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d6eb3f58-df11-46bf-6c4e-08dd44535209 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: DB5PEPF00014B89.eurprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR08MB9267 X-Spam-Status: No, score=-11.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FORGED_SPF_HELO, GIT_PATCH_0, SPF_HELO_PASS, SPF_NONE, TXREP, 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 <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> Errors-To: gcc-patches-bounces~patchwork=sourceware.org@gcc.gnu.org |
Series |
FMV refactor and ACLE compliance.
|
|
Commit Message
Alfie Richards
Feb. 3, 2025, 1:04 p.m. UTC
Notably this respects target_version semantics where an unannotated function can be the default version. gcc/ChangeLog: * attribs.cc (is_function_default_version): Add target_version logic. --- gcc/attribs.cc | 28 ++++++++++++++++++++-------- 1 file changed, 20 insertions(+), 8 deletions(-)
Comments
Alfie Richards <alfie.richards@arm.com> writes: > Notably this respects target_version semantics where an unannotated > function can be the default version. > > gcc/ChangeLog: > > * attribs.cc (is_function_default_version): Add target_version logic. Generally looks good to me, but: > --- > gcc/attribs.cc | 28 ++++++++++++++++++++-------- > 1 file changed, 20 insertions(+), 8 deletions(-) > > diff --git a/gcc/attribs.cc b/gcc/attribs.cc > index 56dd18c2fa8..5cf45491ada 100644 > --- a/gcc/attribs.cc > +++ b/gcc/attribs.cc > @@ -1279,18 +1279,30 @@ make_dispatcher_decl (const tree decl) > return func_decl; > } > > -/* Returns true if DECL is multi-versioned using the target attribute, and this > - is the default version. This function can only be used for targets that do > - not support the "target_version" attribute. */ > +/* Returns true if DECL a multiversioned default. > + With the target attribute semantics, returns true if the function is marked > + as default with the target version. > + With the target_version attribute semantics, returns true if the function > + is either not annotated, or annotated as default. */ > > bool > is_function_default_version (const tree decl) > { > - if (TREE_CODE (decl) != FUNCTION_DECL > - || !DECL_FUNCTION_VERSIONED (decl)) > - return false; > - tree attr = lookup_attribute ("target", DECL_ATTRIBUTES (decl)); > - gcc_assert (attr); It might be worth either preserving the FUNCTION_DECL test or turning it into an assert. With that change... > + tree attr; > + if (TARGET_HAS_FMV_TARGET_ATTRIBUTE) > + { > + if (!DECL_FUNCTION_VERSIONED (decl)) > + return false; > + attr = lookup_attribute ("target", DECL_ATTRIBUTES (decl)); > + if (!attr) > + return false; ...I suppose we should also preserve the original assert here, unless there's a specific reason not to. Thanks, Richard > + } > + else > + { > + attr = lookup_attribute ("target_version", DECL_ATTRIBUTES (decl)); > + if (!attr) > + return true; > + } > attr = TREE_VALUE (TREE_VALUE (attr)); > return (TREE_CODE (attr) == STRING_CST > && strcmp (TREE_STRING_POINTER (attr), "default") == 0);
diff --git a/gcc/attribs.cc b/gcc/attribs.cc index 56dd18c2fa8..5cf45491ada 100644 --- a/gcc/attribs.cc +++ b/gcc/attribs.cc @@ -1279,18 +1279,30 @@ make_dispatcher_decl (const tree decl) return func_decl; } -/* Returns true if DECL is multi-versioned using the target attribute, and this - is the default version. This function can only be used for targets that do - not support the "target_version" attribute. */ +/* Returns true if DECL a multiversioned default. + With the target attribute semantics, returns true if the function is marked + as default with the target version. + With the target_version attribute semantics, returns true if the function + is either not annotated, or annotated as default. */ bool is_function_default_version (const tree decl) { - if (TREE_CODE (decl) != FUNCTION_DECL - || !DECL_FUNCTION_VERSIONED (decl)) - return false; - tree attr = lookup_attribute ("target", DECL_ATTRIBUTES (decl)); - gcc_assert (attr); + tree attr; + if (TARGET_HAS_FMV_TARGET_ATTRIBUTE) + { + if (!DECL_FUNCTION_VERSIONED (decl)) + return false; + attr = lookup_attribute ("target", DECL_ATTRIBUTES (decl)); + if (!attr) + return false; + } + else + { + attr = lookup_attribute ("target_version", DECL_ATTRIBUTES (decl)); + if (!attr) + return true; + } attr = TREE_VALUE (TREE_VALUE (attr)); return (TREE_CODE (attr) == STRING_CST && strcmp (TREE_STRING_POINTER (attr), "default") == 0);