Message ID | 20250203130421.2192732-5-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 C4F093858420 for <patchwork@sourceware.org>; Mon, 3 Feb 2025 13:11:33 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from PA4PR04CU001.outbound.protection.outlook.com (mail-francecentralazlp170130007.outbound.protection.outlook.com [IPv6:2a01:111:f403:c20a::7]) by sourceware.org (Postfix) with ESMTPS id 592173858C56 for <gcc-patches@gcc.gnu.org>; Mon, 3 Feb 2025 13:04:44 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 592173858C56 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 592173858C56 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=2a01:111:f403:c20a::7 ARC-Seal: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1738587884; cv=pass; b=ZgalYrLXN1yhZEZ4s2C+kwTdkLzKgbQCks78jGtibJboMz+siLgyIx1uLS5b+31eCJoG6LMV9FH8oDkWuAPAqAPQKBy7kfFAcpa1N8wQIbZv64arybzDtm4VAIRNA/5BIOHwyJYeso3n/sBhtLTBLw4hrPIlRvJkhylN2cMonxM= ARC-Message-Signature: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1738587884; c=relaxed/simple; bh=cLiVBB4X0OziOcrPbkzoxAiNBoPeabxC+zGu6fJfclM=; h=DKIM-Signature:DKIM-Signature:From:To:Subject:Date:Message-ID: MIME-Version; b=uv36NC1R2O596jF0l1j7tPkzV/ysXwyrh1vnnDQ3sDSR29E12iajmQPEhcpD1wK6EhMorge+zpW02XoyDKqD+Ot9Ztk3V3Ctf2JOfCDfnx+s1hX2cDCOKkzKcezAaMwhoSX2WE2FXJnFUUaeK7eFNFtqhZqaXWpV2XIMWwr6iJM= ARC-Authentication-Results: i=3; server2.sourceware.org ARC-Seal: i=2; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=pass; b=KVmIK8hdiwD7mijkMAg7u1d6Z4yDv1FQtax2tKMpVVswSo8/c3DYVA4bhOmWXE/Dcq7xwbzAiG9kpnbC2j9QEZUSd3XNz9JZp1MpvcPYNyPMD/wZACUmxPWLiwZIhhwZW72NXGeDs88+5Lq3tzhBo8OI66ocPWmEbabOR/5HQLsyA8IDNznKGy2EaPzf1TpuBxHToPcAm6qouM+V3h81Q3lSZ6+pwfSp+Tq4dzjfMh5aRaqcwBTQYu+s9XAkw95C/i1IFSqW7vgNRQLUAFokMiM5aFLBNilY+0yK/L990nePQqrexgUNqPRxWumyeZNNQLD9J/XXnvS2y/70G0w/2w== 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=I+2OfZdMFabZuegIdLxxsOJhQEF2JnIIOsBLB0EvMhU=; b=LQ0/vbcrT+znO+eWtrf/PWyma3i3khUUV/LiAadmF3ULvoKBvScPKUTSPrNh+bgDNZU5hiyHYhmREmniiZ9z78QdiLYOfeyG5fEWhFUQpIDgWrN9wBlhZxsxXoqRKsTRolW7f/YxAdOZsxMGquXAxGQbe1OXH2gV6m5AtsNND3+xWP6SbNmyLZVYwnwRMgy0xyZL33HSBmtKTxGe8rQFNL4Zr3wf7Swbt+zuDwEXN0s+BGGlkNXtWpUDeZGFXWo+iTzosNKUwEPczwYJdUBT4CIZ1nKPGD2X9X2+twrOBOrQIcYimkDajbHhTIMgEx1WFmCImRJRjBU5noWCHZo9+A== 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=I+2OfZdMFabZuegIdLxxsOJhQEF2JnIIOsBLB0EvMhU=; b=AKyJ05Z+e9Jcd/nNdnlBuETWBTHaN3OW3vrD7zsnYcs+1/GX5ZsouFm9qC5VmsnMx3V/eJP9DuuMau35HsnFi8Eiw96Jlp/v64XWLwZkcn3tEPBOvg4gnMd19x3A28wsrR9B5lyZfOVGtlFbKCMWT9crEkAF1dOhim+SjUMJ46k= Received: from DB8PR09CA0012.eurprd09.prod.outlook.com (2603:10a6:10:a0::25) by VI1PR08MB5533.eurprd08.prod.outlook.com (2603:10a6:803:12d::16) 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:39 +0000 Received: from DU2PEPF00028D0B.eurprd03.prod.outlook.com (2603:10a6:10:a0:cafe::9) by DB8PR09CA0012.outlook.office365.com (2603:10a6:10:a0::25) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8398.24 via Frontend Transport; Mon, 3 Feb 2025 13:04:38 +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 DU2PEPF00028D0B.mail.protection.outlook.com (10.167.242.171) 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:38 +0000 Received: ("Tessian outbound 4d4d74fe3cc9:v560"); Mon, 03 Feb 2025 13:04:38 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: c4ce83e40adc5c0f X-TessianGatewayMetadata: IZA5Z+S8hOxjnpuMr7AAFyJj0KsMxXWLQLRz2OLvHjfEZ41oyCOJgpaUHcIzJXmi3LwYxhLzeqS3Xjch01kpttatIhHdZMQh38fYPaceXwaiVQyUbQc0xP9T1oVV82Mgx1zxnyftrwN4sbUU9YJftLyPButTIN/uUhBiovaygQg= X-CR-MTA-TID: 64aa7808 Received: from L42182ad91b57.2 by 64aa7808-outbound-1.mta.getcheckrecipient.com id ADBBA59B-E666-4C2A-B70E-B6A30A3A7C5E.1; Mon, 03 Feb 2025 13:04:32 +0000 Received: from EUR05-VI1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id L42182ad91b57.2 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Mon, 03 Feb 2025 13:04:32 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=gAhgxZ50SukQZ8GroXIkEXzC3Er8A24jvaPQJQpWLJYAlSA8QIJWB7qUWlZ/cr2uF+gu5u4R8ztH9pXh1c+hxTGZbnWbfcTpInR4nBGGBW5dFMWCslbP8oHE20RnNVtXbXLLRZzMTfS4P8b9lhN2rZ+VlSYZAy7F6gX6PGmnu+ixzwPqmkG41Y2ZPaa2NKNedcLXoKYyM/S6gWBOECTdBetcOiUw8w3UBwCYmjLtxBXE/i0jnodLexHeWzBr8jHwquH7X8HgjtEfh+2oEf10oIgL8jtW5b27H5HsNASmLlMYuQul9rt0uK1AOy5N788Ju8+64Aiql7BujXIhRYr1vA== 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=I+2OfZdMFabZuegIdLxxsOJhQEF2JnIIOsBLB0EvMhU=; b=Yd6Wjf3UDY6JHhGFn0ZRDe2hdZgThn2ffk7CMiJBiXXhbNpYRnaDxIeJxyMVD/fcogiQvDekMsY7Bu20TQHXLhrsThzj92pnsMxswJtYTt5EaMc1cSf+tPUr3vDVREIFIxlds9phj+8lKZ8HOHW4yxqbNRxev/slCDs8loUzaRd6YsvaNIgDcbolGaxseGlYcCV7Aw3oFlgxQ8rNwh+oOjT6eJsmkxQxdU2rInjpOW1OGxIBSo84jtWWPf714ltkdFqK3pywOtskkx7oWu/5x6ZobQPPc3c4Bpkq4kkMAa9fJZIiqViAKpo71DGFbtSTeWmQbqGH2eX9xoNlWjquHg== 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=I+2OfZdMFabZuegIdLxxsOJhQEF2JnIIOsBLB0EvMhU=; b=AKyJ05Z+e9Jcd/nNdnlBuETWBTHaN3OW3vrD7zsnYcs+1/GX5ZsouFm9qC5VmsnMx3V/eJP9DuuMau35HsnFi8Eiw96Jlp/v64XWLwZkcn3tEPBOvg4gnMd19x3A28wsrR9B5lyZfOVGtlFbKCMWT9crEkAF1dOhim+SjUMJ46k= Received: from DUZPR01CA0268.eurprd01.prod.exchangelabs.com (2603:10a6:10:4b9::16) by AS8PR08MB7741.eurprd08.prod.outlook.com (2603:10a6:20b:525::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:28 +0000 Received: from DB1PEPF00039230.eurprd03.prod.outlook.com (2603:10a6:10:4b9::4) by DUZPR01CA0268.outlook.office365.com (2603:10a6:10:4b9::16) 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:34 +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:27 +0000 Received: from AZ-NEU-EXJ01.Arm.com (10.240.25.132) 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:27 +0000 Received: from AZ-NEU-EX04.Arm.com (10.251.24.32) by AZ-NEU-EXJ01.Arm.com (10.240.25.132) 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:26 +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:26 +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 04/16] Remove unecessary `record` argument from maybe_version_functions. Date: Mon, 3 Feb 2025 13:04:08 +0000 Message-ID: <20250203130421.2192732-5-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_|AS8PR08MB7741:EE_|DU2PEPF00028D0B:EE_|VI1PR08MB5533:EE_ X-MS-Office365-Filtering-Correlation-Id: bf32bde6-9559-412b-3f27-08dd445350ed x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; ARA:13230040|1800799024|376014|36860700013|82310400026; X-Microsoft-Antispam-Message-Info-Original: 6sQapsxwNUiZRFu9jE1i4DOV+2sSkOUtaMhvGGLVXlNHkY8AV54qK0ZsWj0d1agSETXHopz93SrH10Ok8fiBll2/JgZqy2wAds0oQ/RT3bYJkRpc/0d22Zp12isnxsOFT5bqd3+xC6c7afG5B7JrU1L9eh8GJddBAoMffnrSMItWJWAHVnFo3BTprSv83EmCYSupPuETbaRbEhq9oqt1Gd22ZlINco1M+qwqHIvK+AZUXRHtVtb+24FNTvJJuGfP6EwSY1V0EPclvOvezgRdt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bgIOXyUQfjuPHA4Mskci/2HB1fpKCw9prYu3ECrfHKjfgv7dwjY1PSe2lEAOmYMw8L3Xd4s6vUA0VZbVBh7NIZL24bUYwIVHSJs5OUJrvH7yymaoElHayCFAGTNkUyNzT2dh/7Qb5zM9pxa2CdnyDyj8mJNRsGN7vIvGqkYhEg= 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)(1800799024)(376014)(36860700013)(82310400026); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR08MB7741 X-MS-Exchange-SkipListedInternetSender: ip=[2603:10a6:10:4b9::16]; domain=DUZPR01CA0268.eurprd01.prod.exchangelabs.com X-MS-Exchange-Transport-CrossTenantHeadersStripped: DU2PEPF00028D0B.eurprd03.prod.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 54b748d7-0083-4329-51f2-08dd44534a4b X-Microsoft-Antispam: BCL:0; ARA:13230040|376014|82310400026|35042699022|14060799003|1800799024|36860700013; X-Microsoft-Antispam-Message-Info: =?utf-8?q?BxWdoi1gF86B600L8p2Bx98cB6pu7FJ?= =?utf-8?q?Osv4ZRH2lGk0Weg7sCiqqALHPRddvFMO3bpljua2H7jveECq0/Ksrr1WQCQWad+9i?= =?utf-8?q?J/WD5CEnC2D4PmR719EUkUHAQso2NmnB5/seBczqxdCmpItr+a8NoKLmNLwTRkeqE?= =?utf-8?q?ML/uI9sxlbma/to5K/U+KvjacZ7pL95VNGZpr2cp0fG9TodYUPkLnkeq2WYDlM9vi?= =?utf-8?q?GuvHbg1GvVwsdaPEUza8lu4OcTJeU/5E0DcM1yGZmvlVP5j+ituJx0i0zDda6kXmO?= =?utf-8?q?Y4zI9EE5lLu2c9m5xtr22YhnYHE58xM/dEFHvXoxaSiNWQOQ5pVx57cJO7q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?utf-8?q?53rJTf+JOtFq+ZUzMKqLSRgq+XvDCmng/yFKIsBK59/5pVqI+usjvpnF5+oCH9VQz?= =?utf-8?q?btWNvVhKo4dP2GHNTswh+qYUb/4j2N/4fbY+cesCyAWQS6seeO5xau2qjMi+NwBaj?= =?utf-8?q?FCxgLFVNNlo2oUzXGLM64FTyNG7mMf2rWA+KIclZ1O1IgJ2v+tRlgVOXwlbrAer1n?= =?utf-8?q?tagIvEhl6ndgfu2moxxvXXOqFTMfhmavj7ez3PdMEtsZfhgMnrAVoc=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)(376014)(82310400026)(35042699022)(14060799003)(1800799024)(36860700013); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Feb 2025 13:04:38.7178 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: bf32bde6-9559-412b-3f27-08dd445350ed 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: DU2PEPF00028D0B.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR08MB5533 X-Spam-Status: No, score=-11.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, SPF_HELO_NONE, 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 |
None
|
|
Commit Message
Alfie Richards
Feb. 3, 2025, 1:04 p.m. UTC
The `record` argument in maybe_version_function was intended to allow controlling recording the relationship of versions. However, it only exercised this if both input funcitons were already marked as versioned, and this same logic is repeated in maybe_version_function itself so the argument is unecessary. gcc/cp/ChangeLog: * class.cc (add_method): Remove argument. * cp-tree.h (maybe_version_functions): Ditto. * decl.cc (decls_match): Ditto. (maybe_version_functions): Ditto. --- gcc/cp/class.cc | 2 +- gcc/cp/cp-tree.h | 2 +- gcc/cp/decl.cc | 9 +++------ 3 files changed, 5 insertions(+), 8 deletions(-)
Comments
On Mon, Feb 03, 2025 at 01:04:08PM +0000, Alfie Richards wrote: > > The `record` argument in maybe_version_function was intended to allow > controlling recording the relationship of versions. However, it only > exercised this if both input funcitons were already marked as versioned, > and this same logic is repeated in maybe_version_function itself so the > argument is unecessary. I think this commit message is inaccurate, but it's quite confusing to me. How about the following instead: Previously, the `record` argument in maybe_version_function allowed the call to cgraph_node::record_function_versions to be skipped. However, this was only skipped when both decls were already marked as versioned, in which case we will now trigger the early exit in record_function_versions instead. The patch otherwise looks fine to me. > > gcc/cp/ChangeLog: > > * class.cc (add_method): Remove argument. > * cp-tree.h (maybe_version_functions): Ditto. > * decl.cc (decls_match): Ditto. > (maybe_version_functions): Ditto. > --- > gcc/cp/class.cc | 2 +- > gcc/cp/cp-tree.h | 2 +- > gcc/cp/decl.cc | 9 +++------ > 3 files changed, 5 insertions(+), 8 deletions(-) > > diff --git a/gcc/cp/class.cc b/gcc/cp/class.cc > index f2f81a44718..a9a80d1b4be 100644 > --- a/gcc/cp/class.cc > +++ b/gcc/cp/class.cc > @@ -1402,7 +1402,7 @@ add_method (tree type, tree method, bool via_using) > /* If these are versions of the same function, process and > move on. */ > if (TREE_CODE (fn) == FUNCTION_DECL > - && maybe_version_functions (method, fn, true)) > + && maybe_version_functions (method, fn)) > continue; > > if (DECL_INHERITED_CTOR (method)) > diff --git a/gcc/cp/cp-tree.h b/gcc/cp/cp-tree.h > index ec976928f5f..8eba8d455be 100644 > --- a/gcc/cp/cp-tree.h > +++ b/gcc/cp/cp-tree.h > @@ -7114,7 +7114,7 @@ extern void determine_local_discriminator (tree, tree = NULL_TREE); > extern bool member_like_constrained_friend_p (tree); > extern bool fns_correspond (tree, tree); > extern int decls_match (tree, tree, bool = true); > -extern bool maybe_version_functions (tree, tree, bool); > +extern bool maybe_version_functions (tree, tree); > extern bool validate_constexpr_redeclaration (tree, tree); > extern bool merge_default_template_args (tree, tree, bool); > extern tree duplicate_decls (tree, tree, > diff --git a/gcc/cp/decl.cc b/gcc/cp/decl.cc > index cf5e055e146..3b3b4481964 100644 > --- a/gcc/cp/decl.cc > +++ b/gcc/cp/decl.cc > @@ -1215,9 +1215,7 @@ decls_match (tree newdecl, tree olddecl, bool record_versions /* = true */) > && targetm.target_option.function_versions (newdecl, olddecl)) > { > if (record_versions) > - maybe_version_functions (newdecl, olddecl, > - (!DECL_FUNCTION_VERSIONED (newdecl) > - || !DECL_FUNCTION_VERSIONED (olddecl))); > + maybe_version_functions (newdecl, olddecl); > return 0; > } > } > @@ -1288,7 +1286,7 @@ maybe_mark_function_versioned (tree decl) > If RECORD is set to true, record function versions. */ > > bool > -maybe_version_functions (tree newdecl, tree olddecl, bool record) > +maybe_version_functions (tree newdecl, tree olddecl) > { > if (!targetm.target_option.function_versions (newdecl, olddecl)) > return false; > @@ -1311,8 +1309,7 @@ maybe_version_functions (tree newdecl, tree olddecl, bool record) > maybe_mark_function_versioned (newdecl); > } > > - if (record) > - cgraph_node::record_function_versions (olddecl, newdecl); > + cgraph_node::record_function_versions (olddecl, newdecl); > > return true; > }
diff --git a/gcc/cp/class.cc b/gcc/cp/class.cc index f2f81a44718..a9a80d1b4be 100644 --- a/gcc/cp/class.cc +++ b/gcc/cp/class.cc @@ -1402,7 +1402,7 @@ add_method (tree type, tree method, bool via_using) /* If these are versions of the same function, process and move on. */ if (TREE_CODE (fn) == FUNCTION_DECL - && maybe_version_functions (method, fn, true)) + && maybe_version_functions (method, fn)) continue; if (DECL_INHERITED_CTOR (method)) diff --git a/gcc/cp/cp-tree.h b/gcc/cp/cp-tree.h index ec976928f5f..8eba8d455be 100644 --- a/gcc/cp/cp-tree.h +++ b/gcc/cp/cp-tree.h @@ -7114,7 +7114,7 @@ extern void determine_local_discriminator (tree, tree = NULL_TREE); extern bool member_like_constrained_friend_p (tree); extern bool fns_correspond (tree, tree); extern int decls_match (tree, tree, bool = true); -extern bool maybe_version_functions (tree, tree, bool); +extern bool maybe_version_functions (tree, tree); extern bool validate_constexpr_redeclaration (tree, tree); extern bool merge_default_template_args (tree, tree, bool); extern tree duplicate_decls (tree, tree, diff --git a/gcc/cp/decl.cc b/gcc/cp/decl.cc index cf5e055e146..3b3b4481964 100644 --- a/gcc/cp/decl.cc +++ b/gcc/cp/decl.cc @@ -1215,9 +1215,7 @@ decls_match (tree newdecl, tree olddecl, bool record_versions /* = true */) && targetm.target_option.function_versions (newdecl, olddecl)) { if (record_versions) - maybe_version_functions (newdecl, olddecl, - (!DECL_FUNCTION_VERSIONED (newdecl) - || !DECL_FUNCTION_VERSIONED (olddecl))); + maybe_version_functions (newdecl, olddecl); return 0; } } @@ -1288,7 +1286,7 @@ maybe_mark_function_versioned (tree decl) If RECORD is set to true, record function versions. */ bool -maybe_version_functions (tree newdecl, tree olddecl, bool record) +maybe_version_functions (tree newdecl, tree olddecl) { if (!targetm.target_option.function_versions (newdecl, olddecl)) return false; @@ -1311,8 +1309,7 @@ maybe_version_functions (tree newdecl, tree olddecl, bool record) maybe_mark_function_versioned (newdecl); } - if (record) - cgraph_node::record_function_versions (olddecl, newdecl); + cgraph_node::record_function_versions (olddecl, newdecl); return true; }