From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by sourceware.org (Postfix) with ESMTPS id 868993857C50 for ; Wed, 27 Apr 2022 15:51:49 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 868993857C50 Received: from pps.filterd (m0246629.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 23RFXVx1032115 for ; Wed, 27 Apr 2022 15:51:48 GMT Received: from iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta01.appoci.oracle.com [130.35.100.223]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3fmb1014pk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Wed, 27 Apr 2022 15:51:48 +0000 Received: from pps.filterd (iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (8.16.1.2/8.16.1.2) with SMTP id 23RFon5v019239 for ; Wed, 27 Apr 2022 15:51:46 GMT Received: from nam12-bn8-obe.outbound.protection.outlook.com (mail-bn8nam12lp2169.outbound.protection.outlook.com [104.47.55.169]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com with ESMTP id 3fp5ym54rq-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Wed, 27 Apr 2022 15:51:46 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YKjyoqxRG3itZkbCA3d5nCJztEiE6UUa42XxFzkkfitwKYKQy5iLJjvh8u26VoSwXgTurFAKGsV/ZJ1R69VK3ffZNVC6xFNoxudoCf7TD0EkN/rhkCILVwlT0LELNLDA4jb3RC8QqfZ8ggLuanDjz1J9HdmS4qPzfPVs4laLbxe8JOjUSP+yO6h4p1Se9cBNFUb5KX5GiK5FBwzHnfKsfXVcAkHP5F9vJRVFeGn8la1ywMKcNE+N1ifeATEsT/glZWHPJyOLOa3b8ry8F9/RC3Tn/zayGxibrwAYViz/xWU5n3xWqs/DWKqt0QdzuuWJExRz9dy7zdcmpNI+S0WGxQ== 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=J5VnAdKriSfKv7STxEuBlt1o9sro0cJiT+ujTyS2YvU=; b=HE0ydzxyccDb7IT9rucPjEmHvCF0WigeKDR1jJDAztm474H35S08ryvumWsQCvFYpn43I/eYe2qA8RcomHj/sjaEhTebbQqGZyLyG8FYBG+yhtU2f/HWvzsMfPoRrUSkriyI8nHolg/4ZDXRYpaA7pD2KxnO2YKygFqZ5gR+HgG6z+pw67pzIxOERaoy6AydG6mA+Z++bGvqZI4/VwjfO2RQXTu2Hm/kXR5KdtIjUMZalT673GAhuZef9ukfHo85DRx0APnXtD+U1z3hnD3ThS2psd4eNjJHzI+mbNtPCNdYdIiTgmwZvr4kMA6EDqMpCoWnn/Teqs4TibYv+iAl0Q== 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 Received: from SA2PR10MB4715.namprd10.prod.outlook.com (2603:10b6:806:fb::10) by DM6PR10MB4300.namprd10.prod.outlook.com (2603:10b6:5:221::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5186.14; Wed, 27 Apr 2022 15:51:45 +0000 Received: from SA2PR10MB4715.namprd10.prod.outlook.com ([fe80::c4aa:e093:f6cf:b111]) by SA2PR10MB4715.namprd10.prod.outlook.com ([fe80::c4aa:e093:f6cf:b111%5]) with mapi id 15.20.5186.021; Wed, 27 Apr 2022 15:51:45 +0000 From: Nick Alcock To: binutils@sourceware.org Subject: [PATCH 2/2] libctf: impose an ordering on conflicting types Date: Wed, 27 Apr 2022 16:51:30 +0100 Message-Id: <20220427155130.238504-2-nick.alcock@oracle.com> X-Mailer: git-send-email 2.36.0.262.gb007c8117e.dirty In-Reply-To: <20220427155130.238504-1-nick.alcock@oracle.com> References: <20220427155130.238504-1-nick.alcock@oracle.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: LO4P123CA0120.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:192::17) To SA2PR10MB4715.namprd10.prod.outlook.com (2603:10b6:806:fb::10) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 562d74bb-9250-4117-5db2-08da2865d3f8 X-MS-TrafficTypeDiagnostic: DM6PR10MB4300:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 151bqrzPoB15bfYybNpcjOMQBZVe9XURArpMrheG4vpIUCMfnsqFZoE/4Eup69mqm2ZTGjLEWl5uq4ov+9wH08OnK/v9FJtMxYLSSiQ0xcVhZDnGqeaHwyWcmqv+ldOo16Wehpr120zLD8kksU2YMjHW1x8jT2Q8L2q8kfK3nBq/QkV64q+r8MCv4FFMw7SpgxpWKawd60CHQb6wm4r4XlnN8lGJ3E233wpY35Np2o1hQs0wo8jHTTeYZI6hgbjeRrjdlUQCk5OUYuJUb6po+Pws/+Q5+uEghTxu7ZERYv21kdyJ2KQy3stNfT2n9CJkezAOdCxrKFnzwqMfyHMNK6w0dtzoBIfFVaxeDU+htJlLVn/wxCwEmImPbUVU/vXyI/wIwjjLFnC7HBaXTyaHq3sSYHP4ZauvQhAFFjObSw1lRrG5i+eDBcsw3k5HOppVHh5/PQcbHshIe3NOCMs8/VDtexqdnF7PCp0sxNRIkKI6Bl12nyzHeFNMhBdIcQAEtL+CLBscMszTNcrBk6wrJxzhSQg5NylWLjH5IcvRJVH8RVlTLU5o2cwnJqMcX5rOkTtbE2DDWPR2CVWk+/MyzxWn5YsbGEVPbvAGlHWCowBFPq6e5Mmzo3BvPo2lPVQIHmr1lyTqILEw+C4GAGQC6A== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SA2PR10MB4715.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(366004)(6486002)(5660300002)(8676002)(66556008)(66946007)(6666004)(52116002)(1076003)(36756003)(2906002)(6916009)(83380400001)(316002)(86362001)(8936002)(66476007)(38100700002)(6506007)(508600001)(6512007)(44832011)(186003)(2616005); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?oIs9j1B8RIcGDGW6qmPF9BCGavSE58FAHJ1alxqNyXm24lkPtbvHMmXsEyX/?= =?us-ascii?Q?SiaJOn4xW5NlmfKqGn0rL36YXRMPmjiG4eFDH3v2kurBGqzWeBZHg1GPXeBf?= =?us-ascii?Q?LdhtjWYXkl0OjqeFjnLBPNMxh2Kq19GVS61J5QgTx0Ev89pTOIwaQZZaEDUr?= =?us-ascii?Q?V3PdPfbZ2m+DVgSSF/B8A8xvH8wscDqugcxc1A7BTI+YPyvhafQ4NvZWiBaR?= =?us-ascii?Q?b+zE/stMSoOAx+NXevOcz3SrKMhoOcgKs7ZOdQKtZm42/d99Agxsrbjxe87F?= =?us-ascii?Q?SUodDHCKC30Oe/85GxsZiXFsGHcoctijf85XbgxIX6fAUF5zwvA8JMd+lZ4R?= =?us-ascii?Q?k2qNIMnrvomF8TnY3PXavpa0tTSrknZvOoo/JTcrGv3IkHqwuY1WF81t9rko?= =?us-ascii?Q?56n7G9a+jnY+bJOp0FBrHQU4+BH1+2qiOSoqgEF1xZHKecArzIhFLHdXNzW/?= =?us-ascii?Q?ZaoIzo0M8STTSnnvLVEtrSG/AaXEI6ttr1ohg3c9RKv4uvsFxepc8oANuzGK?= =?us-ascii?Q?oDvVapKRJWVbd0A12sSxHwIBU08xPBx4VJnZy3Dshfm4DMff/tbmVPDZWszr?= =?us-ascii?Q?SHZ24Kj+c9VkO1JK70/D6trVxMAjxcN9La4WRP7X82Jhab95kokSFQdxjNdS?= =?us-ascii?Q?mVLXcRukaFqzn9haVaYv/Mi3ftxHwzdwTJXF6JBh/SiUWXQh1p81PczB2seY?= =?us-ascii?Q?E4ITEwvo3NnuHsddd1i2SO511QMqDbIlxDdkejbqrEJDzN2fN7RA6SkVIMPM?= =?us-ascii?Q?PS2gmZuilE9TEE7F5u/jV7r8Dhpwk2+DGKepsD5oG2TD6NewjtHm93fpj5ML?= =?us-ascii?Q?ye06DjSvAu4ux2wo8Slmab2oG9qewPNvdU2FyRZdCO0zvxahq5NBbSRl9uqC?= =?us-ascii?Q?1zc0VE3rwxnWZ4Pz1PzfNaSyT8/IyhYAuH6uNA6hFMvGvdUdLF6oNzcUyyOu?= =?us-ascii?Q?dFat26jjSdUy6iZ1a269oJj6gXhYoOlEeRNgZUevYn3uRe2QgeYPV+SDDhPt?= =?us-ascii?Q?iLlPXnp2e1dVVhfxRIrOXqNjJ7dy2wUjECM3Kk31+s8CVqZbkvuGYffXuw9Q?= =?us-ascii?Q?unXBiaKMH3jF7HEJJMagBUG8ZWsC7BvbOtggKP1OOT5rItdpPXNab1wzlu+9?= =?us-ascii?Q?8Uu3OAAz06/TmR1E+E+aX7iajyxb8IcUdb30NSORydxF3QUYJ7GxrgZQke0v?= =?us-ascii?Q?eJqoPDEO3tV1CQe4ik3rtz2Q3Hu28bWG8Vq813IOV2TjyyX+0UIip9ZnVPCh?= =?us-ascii?Q?4COus3mwqzIId600canAjVNqZ5WXI7nE4ics5qZ+mOxiMZ/91baNlUNFB4zH?= =?us-ascii?Q?COHZoLq4jvM1k5dohPSXhTT5wfhTFzsjf/55/i5wb+IVeVeXdntNGHuA7Lx8?= =?us-ascii?Q?joT9VWXIS4semw4ExQr6zDrECaucPMw6IVj3gv2J0Zk1RAeYklW8QsTggucg?= =?us-ascii?Q?xKs0I3rsTp2Jz8tyGO83o1kyLrTP/tKr5PlBVjDlnd5hc8SNxHpM+hUFPMID?= =?us-ascii?Q?ktKYHfGJqVp/rZbAQthpnZLHlC4VNCYZRzSBkuqQJRJQrjxZfRyZI2b1rZni?= =?us-ascii?Q?6O7tn4UZH+SKpBt6xFi1HeT63fBCHFBLv4FefgRdGWPK6WNYlOLhtv9hg+Zs?= =?us-ascii?Q?/z/tMG6vXXuW1DHkBEEAIGKKrIWl4Lq6i0JeYg6wb8UuKBS+CfeUeiubEhlO?= =?us-ascii?Q?NgiOg9TvBj/r/Gh2RMuQUoFRAolM7ZrgQie8oC3RGP2anD8nu4Xsz7aaEGi9?= =?us-ascii?Q?SWbqbwUNusQARUsTF0QzKqs/st2H9Ro=3D?= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 562d74bb-9250-4117-5db2-08da2865d3f8 X-MS-Exchange-CrossTenant-AuthSource: SA2PR10MB4715.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Apr 2022 15:51:44.0517 (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: F9uAWTlAc79cVdon9YaR0ZBCs15IRRerdKcxTre3hI8oq0zhQgP6cLLIXDAUcJSlziDPbVUfn4KjpMdHiBrq2A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR10MB4300 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.486, 18.0.858 definitions=2022-04-27_04:2022-04-27, 2022-04-27 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 phishscore=0 mlxlogscore=999 mlxscore=0 suspectscore=0 malwarescore=0 spamscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2202240000 definitions=main-2204270099 X-Proofpoint-ORIG-GUID: I7kEW-UHD4PqvkbmJDDS_U9Ci-U8xyDP X-Proofpoint-GUID: I7kEW-UHD4PqvkbmJDDS_U9Ci-U8xyDP X-Spam-Status: No, score=-12.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Apr 2022 15:51:52 -0000 When two types conflict and they are not types which can have forwards (say, two arrays of different sizes with the same name in two different TUs) the CTF deduplicator uses a popularity contest to decide what to do: the type cited by the most other types ends up put into the shared dict, while the others are relegated to per-CU child dicts. This works well as long as one type *is* most popular -- but what if there is a tie? If several types have the same popularity count, we end up picking the first we run across and promoting it, and unfortunately since we are working over a dynhash in essentially arbitrary order, this means we promote a random one. So multiple runs of ld with the same inputs can produce different outputs! All the outputs are valid, but this is still undesirable. Adjust things to use the same strategy used to sort types on the output: when there is a tie, always put the type that appears in a CU that appeared earlier on the link line (and if there is somehow still a tie, which should be impossible, pick the type with the lowest type ID). Add a testcase -- and since this emerged when trying out extern arrays, check that those work as well (this requires a newer GCC, but since all GCCs that can emit CTF at all are unreleased this is probably OK as well). Fix up one testcase that has slight type ordering changes as a result of this change. libctf/ChangeLog: * ctf-dedup.c (ctf_dedup_detect_name_ambiguity): Use cd_output_first_gid to break ties. ld/ChangeLog: * testsuite/ld-ctf/array-conflicted-ordering.d: New test, using... * testsuite/ld-ctf/array-char-conflicting-1.c: ... this... * testsuite/ld-ctf/array-char-conflicting-2.c: ... and this. * testsuite/ld-ctf/array-extern.d: New test, using... * testsuite/ld-ctf/array-extern.c: ... this. * testsuite/ld-ctf/conflicting-typedefs.d: Adjust for ordering changes. --- .../ld-ctf/array-char-conflicting-1.c | 9 ++++++ .../ld-ctf/array-char-conflicting-2.c | 9 ++++++ .../ld-ctf/array-conflicted-ordering.d | 26 +++++++++++++++ ld/testsuite/ld-ctf/array-extern.c | 1 + ld/testsuite/ld-ctf/array-extern.d | 32 +++++++++++++++++++ ld/testsuite/ld-ctf/conflicting-typedefs.d | 2 +- libctf/ctf-dedup.c | 21 +++++++++++- 7 files changed, 98 insertions(+), 2 deletions(-) create mode 100644 ld/testsuite/ld-ctf/array-char-conflicting-1.c create mode 100644 ld/testsuite/ld-ctf/array-char-conflicting-2.c create mode 100644 ld/testsuite/ld-ctf/array-conflicted-ordering.d create mode 100644 ld/testsuite/ld-ctf/array-extern.c create mode 100644 ld/testsuite/ld-ctf/array-extern.d diff --git a/ld/testsuite/ld-ctf/array-char-conflicting-1.c b/ld/testsuite/ld-ctf/array-char-conflicting-1.c new file mode 100644 index 00000000000..a6736a8a114 --- /dev/null +++ b/ld/testsuite/ld-ctf/array-char-conflicting-1.c @@ -0,0 +1,9 @@ +typedef char *array[10]; + +static array digits_names = {"zero", "one", "two", "three", "four", + "five", "six", "seven", "eight", "nine"}; + +void *foo (void) +{ + return digits_names; +} diff --git a/ld/testsuite/ld-ctf/array-char-conflicting-2.c b/ld/testsuite/ld-ctf/array-char-conflicting-2.c new file mode 100644 index 00000000000..1cc46f0a31b --- /dev/null +++ b/ld/testsuite/ld-ctf/array-char-conflicting-2.c @@ -0,0 +1,9 @@ +typedef char *array[9]; + +static array digits_names = {"one", "two", "three", "four", + "five", "six", "seven", "eight", "nine"}; + +void *bar (void) +{ + return digits_names; +} diff --git a/ld/testsuite/ld-ctf/array-conflicted-ordering.d b/ld/testsuite/ld-ctf/array-conflicted-ordering.d new file mode 100644 index 00000000000..a8bbc3dd65e --- /dev/null +++ b/ld/testsuite/ld-ctf/array-conflicted-ordering.d @@ -0,0 +1,26 @@ +#as: +#source: array-char-conflicting-1.c +#source: array-char-conflicting-2.c +#objdump: --ctf +#cc: -fPIC +#ld: -shared --ctf-variables --hash-style=sysv +#name: Arrays (conflicted) + +.*: +file format .* + +Contents of CTF section .ctf: + + Header: + Magic number: 0xdff2 + Version: 4 \(CTF_VERSION_3\) +#... + Variables: + digits_names -> .* \(kind 4\) char \*\[10\] .* +#... + Header: +#... + Parent name: .ctf +#... + Variables: + digits_names -> .* \(kind 4\) char \*\[9\] .* +#... diff --git a/ld/testsuite/ld-ctf/array-extern.c b/ld/testsuite/ld-ctf/array-extern.c new file mode 100644 index 00000000000..730ba5a7d81 --- /dev/null +++ b/ld/testsuite/ld-ctf/array-extern.c @@ -0,0 +1 @@ +extern char * digits_names[]; diff --git a/ld/testsuite/ld-ctf/array-extern.d b/ld/testsuite/ld-ctf/array-extern.d new file mode 100644 index 00000000000..4c9ce784e6a --- /dev/null +++ b/ld/testsuite/ld-ctf/array-extern.d @@ -0,0 +1,32 @@ +#as: +#source: array-char.c +#source: array-extern.c +#objdump: --ctf +#ld: -shared --ctf-variables --hash-style=sysv +#name: Arrays (extern) + +.*: +file format .* + +Contents of CTF section .ctf: + + Header: + Magic number: 0xdff2 + Version: 4 \(CTF_VERSION_3\) +#... + Data object section: .* \(0x[1-9a-f][0-9a-f]* bytes\) + Type section: .* \(0x44 bytes\) + String section: .* + + Labels: + + Data objects: + digits_names -> 0x[0-9a-f]*: \(kind 4\) char \*\[10\] .* + + Function objects: + + Variables: + + Types: +#... + 0x[0-9a-f]*: \(kind 4\) .*\[10\] \(size .* +#... diff --git a/ld/testsuite/ld-ctf/conflicting-typedefs.d b/ld/testsuite/ld-ctf/conflicting-typedefs.d index 4ae8de41364..beb1f7776c6 100644 --- a/ld/testsuite/ld-ctf/conflicting-typedefs.d +++ b/ld/testsuite/ld-ctf/conflicting-typedefs.d @@ -15,8 +15,8 @@ Contents of CTF section .ctf: #... Types: 0x1: .*int .* - 0x[0-9]:.*int .* 0x[0-9]: \(kind 10\) word .* -> 0x[0-9]: \(kind 1\) .*int \(format 0x1\) \(size 0x[0-9a-f]*\) \(aligned at 0x[0-9a-f]*\) + 0x[0-9]:.*int .* Strings: #... diff --git a/libctf/ctf-dedup.c b/libctf/ctf-dedup.c index b2fb0a13441..cddf4376eae 100644 --- a/libctf/ctf-dedup.c +++ b/libctf/ctf-dedup.c @@ -1502,12 +1502,17 @@ ctf_dedup_detect_name_ambiguity (ctf_dict_t *fp, ctf_dict_t **inputs) the most-popular type on insertion, and we want conflicting structs et al to have all forwards left intact, so the user is notified that this type is conflicting. TODO: improve this in future by - setting such forwards non-root-visible.) */ + setting such forwards non-root-visible.) + + If multiple distinct types are "most common", pick the one that + appears first on the link line, and within that, the one with the + lowest type ID. (See sort_output_mapping.) */ const void *key; const void *count; const char *hval; long max_hcount = -1; + void *max_gid = NULL; const char *max_hval = NULL; if (ctf_dynhash_elements (name_counts) <= 1) @@ -1517,10 +1522,24 @@ ctf_dedup_detect_name_ambiguity (ctf_dict_t *fp, ctf_dict_t **inputs) while ((err = ctf_dynhash_cnext (name_counts, &j, &key, &count)) == 0) { hval = (const char *) key; + if ((long int) (uintptr_t) count > max_hcount) { max_hcount = (long int) (uintptr_t) count; max_hval = hval; + max_gid = ctf_dynhash_lookup (d->cd_output_first_gid, hval); + } + else if ((long int) (uintptr_t) count == max_hcount) + { + void *gid = ctf_dynhash_lookup (d->cd_output_first_gid, hval); + + if (CTF_DEDUP_GID_TO_INPUT(gid) < CTF_DEDUP_GID_TO_INPUT(max_gid) + || (CTF_DEDUP_GID_TO_INPUT(gid) == CTF_DEDUP_GID_TO_INPUT(max_gid) + && CTF_DEDUP_GID_TO_TYPE(gid) < CTF_DEDUP_GID_TO_TYPE(max_gid))) + { + max_hval = hval; + max_gid = ctf_dynhash_lookup (d->cd_output_first_gid, hval); + } } } if (err != ECTF_NEXT_END) -- 2.36.0.262.gb007c8117e.dirty