From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from omta040.useast.a.cloudfilter.net (omta040.useast.a.cloudfilter.net [44.202.169.39]) by sourceware.org (Postfix) with ESMTPS id 7FCB43882172 for ; Fri, 14 Jun 2024 14:14:19 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 7FCB43882172 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=tromey.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=tromey.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 7FCB43882172 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=44.202.169.39 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1718374462; cv=none; b=kQV6Q/2mc/iNk+2eJHtFEzq3W8DO5ZlEQs6Illfa3vxsLCx9Aj+Atu9S/98P0Wm638vyW9RpHKxb5frUmClRZAEjWFfTerz5ZxD5mM+SgSrR5dOxL1FsrzIm+L9PpUNNEAk89oSuQcWGTTkeNEoDa3JOejRi7YeQY/SVkH9cctg= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1718374462; c=relaxed/simple; bh=cvfgzfKzcj6ZjUeiDrBBsgG/99Y7hkQeMO1bUygCdAw=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=ZafSBdHJO6oVNTygD+g1Y7loFf48t/dJ8m1Ucy9TNw+KRFMbs67mWz+pQedUWJ3NTjxALCmoc9JUKgCjX9aeDhqp1hegQv7qRp6lae/45tnLQHurGGx0IKlRhdTc96hjO9nbKXbD3j//yOGnTku5Q8voaJeAv3A/o99KM6XNzu8= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from eig-obgw-6005a.ext.cloudfilter.net ([10.0.30.201]) by cmsmtp with ESMTPS id I3j3sWLUISqshI7h5sQ3JS; Fri, 14 Jun 2024 14:14:19 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id I7h3sStQSHHoAI7h4swM75; Fri, 14 Jun 2024 14:14:18 +0000 X-Authority-Analysis: v=2.4 cv=dskQCEg4 c=1 sm=1 tr=0 ts=666c503a a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=T1WGqf2p2xoA:10 a=Qbun_eYptAEA:10 a=yPCof4ZbAAAA:8 a=FGjHLbpG9VX46gJtyYkA:9 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Type:MIME-Version:Message-ID:Date:References:In-Reply-To :Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=DM8VGop2jy/H1ibDQEzh6ZCa/LFtjkMKHr240jGgKRs=; b=miGZLXL+LmhdQuoAIqytN/OpVF fk2Yz3mK/Ejo3TdC464IPyLZ7MYgqGvsYW564vEc+/F5SlP3fPPlaRcKBgjn1UVV3GyON/uL7H0ff HujFS1FcL5xBu3uBj2VWhMxBs; Received: from 75-166-134-4.hlrn.qwest.net ([75.166.134.4]:52178 helo=murgatroyd) by box5379.bluehost.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96.2) (envelope-from ) id 1sI7h3-002dO7-1q; Fri, 14 Jun 2024 08:14:17 -0600 From: Tom Tromey To: Nick Alcock Cc: binutils@sourceware.org, stephen.brennan@oracle.com Subject: Re: [PATCH libctf 00/11] enumerator query API, plus some bugfixes In-Reply-To: <20240613185430.85352-1-nick.alcock@oracle.com> (Nick Alcock's message of "Thu, 13 Jun 2024 19:54:19 +0100") References: <20240613185430.85352-1-nick.alcock@oracle.com> X-Attribution: Tom Date: Fri, 14 Jun 2024 08:14:15 -0600 Message-ID: <875xubehmw.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box5379.bluehost.com X-AntiAbuse: Original Domain - sourceware.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tromey.com X-BWhitelist: no X-Source-IP: 75.166.134.4 X-Source-L: No X-Exim-ID: 1sI7h3-002dO7-1q X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 75-166-134-4.hlrn.qwest.net (murgatroyd) [75.166.134.4]:52178 X-Source-Auth: tom+tromey.com X-Email-Count: 2 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfHC9y8/szjuPJVqKqkCaTdj3K/C6fnMbmSckeSFCbuqe59Ba9m2VvLt6GBAxp4XxLoOYfmM5A5fJnhUj+wvRFMU4uZfsjL9jp2BsCFLOTJPHR0H8qKsO 0j/OzSK26QwuDGcT5HWBuSeLJ9d/gqheZPax5GkQVWv/XrFilAYmBOCi6ERyhzM3zLQwX9X9fr3NMZGLpULVuTEYWsqTTUz7qFw= X-Spam-Status: No, score=-3014.9 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,JMQ_SPF_NEUTRAL,RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: >>>>> "Nick" == Nick Alcock writes: Nick> We also improve the deduplicator to consider Nick> enums to be conflicting types if they are distinct but have enumeration Nick> constants in common, and adapt ctf_add_enumerator() to prohibit the Nick> addition of such enumerators (which are invalid C anyway, so anything Nick> trying to add them is probably buggy). I don't know libctf at all but it seems to me that a.c can use enum { X = 1 } and b.c can use enum { X = 2 } without any problem. Tom