From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from omta038.useast.a.cloudfilter.net (omta038.useast.a.cloudfilter.net [44.202.169.37]) by sourceware.org (Postfix) with ESMTPS id 7AB063858D1E for ; Sun, 21 Apr 2024 17:00:04 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 7AB063858D1E 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 7AB063858D1E Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=44.202.169.37 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1713718809; cv=none; b=RJjdvWeeEpWzViDHzxvjVreDDe8bx6+a3has0II87FjkRwc0Zp0i0mSy+Gwr++h+NUrDo4wgAUguVeLd23oNll7N01fSzauM1+L/3j76YKnTGf/LXxTSnQOI81rh+LSZjo7nck8Z8WO3Y6Y8r2Exmzea0eSS8m1XGADVEQ0Rdno= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1713718809; c=relaxed/simple; bh=3OIOfpVa5yMsEn2KWpTZly0KWLVZGOAH6anhwaWDouc=; h=DKIM-Signature:From:Subject:Date:Message-Id:MIME-Version:To; b=iTKeL6vHYAJLS9Q4Yz4EZylv2BGDPNOKyFFnsWPXPB5YClU+VmgZuLnmZaPBVJlJSYMuFq4YxrApW2aNG7PVDQBARE9w52mby6d6ZxlgOtbH9zpof1aN9v8+N5jmu0i8TXL1fdcu06hwGY6ApkMqakKT89tynFC5WBeV0mTq1+Q= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from eig-obgw-5003a.ext.cloudfilter.net ([10.0.29.159]) by cmsmtp with ESMTPS id yDFcrBMgCQr4SyaXsrn4qO; Sun, 21 Apr 2024 17:00:04 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id yaXqrTbuzsT9ByaXrrMNuZ; Sun, 21 Apr 2024 17:00:03 +0000 X-Authority-Analysis: v=2.4 cv=LIutQ4W9 c=1 sm=1 tr=0 ts=66254613 a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=IkcTkHD0fZMA:10 a=raytVjVEu-sA:10 a=Qbun_eYptAEA:10 a=zstS-IiYAAAA:8 a=IxZAjwK7D-MZonLSmbYA:9 a=QEXdDO2ut3YA:10 a=4G6NA9xxw8l3yy4pmD5M:22 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=To:Content-Transfer-Encoding:Content-Type:MIME-Version: Message-Id:Date:Subject:From:Sender:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=W4gQkPMQl2e9Ke+P+K61MeEeGoqhp4gyaZoTlUgpe80=; b=RAVa2p4GnQl1j05q8+AOZSrh0r 4mqcjTgDL+TpZ8NpwtQNooj+B4oxRhH2M1r5kzf3Bs38BjpgWJP5TV8X8f4gnga4SVYeq0U8dKF+B 9vMLJ4gkAQylpgpNnQfmoLgUT; Received: from 97-122-86-252.hlrn.qwest.net ([97.122.86.252]:53968 helo=[192.168.0.21]) by box5379.bluehost.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96.2) (envelope-from ) id 1ryaXq-003wVC-1F for gdb-patches@sourceware.org; Sun, 21 Apr 2024 11:00:02 -0600 From: Tom Tromey Subject: [PATCH 00/10] Fix some C++ name canonicalizer problems Date: Sun, 21 Apr 2024 11:00:00 -0600 Message-Id: <20240421-canon-fixes-v1-0-4dc4791d270d@tromey.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIABBGJWYC/x3MQQrCQAyF4auUrA1OYxeDVxEXmWlsszAjiUih9 O6OLj8e/9shxFUCrsMOLh8NbdYxngaoK9siqHM3UKIpTTRiZWuGD90kkDLPKScqdMnQi5fLf+j B7d5dOASLs9X199FcF7Xzk+MtDsfxBXZAit19AAAA To: gdb-patches@sourceware.org X-Mailer: b4 0.13.0 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: 97.122.86.252 X-Source-L: No X-Exim-ID: 1ryaXq-003wVC-1F X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 97-122-86-252.hlrn.qwest.net ([192.168.0.21]) [97.122.86.252]:53968 X-Source-Auth: tom+tromey.com X-Email-Count: 1 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfFyI5uhm9VfkuWHSri+mU4uvdpze9vFYSIotLDCUOS1K+ZFqehCKP/1dxrlNTCIrh4HR6NVgmc4Aj8aojjFXsbE8YG0Hqq9kjJrJzGdWGERNM9iGLZok MUo2BTlAJodNoIoocBiX6frDXqNhlk25pryrX/TTYrPHu/EpaVqHWqr07T5oH6x8VhpWyiKYWO7Q/M/V8pzEgvLjR/FCvxM61fQ= X-Spam-Status: No, score=-3015.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,JMQ_SPF_NEUTRAL,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: This series fixes a few bug in the C++ name canonicalizer. It doesn't fix all of them; in particular, there's a bug open about ABI tags that I didn't try to fix. I think there may be other bugs as well, because C++ has continued to evolve but the canonicalizer, by and large, has not. Regression tested on x86-64 Fedora 38. --- Tom Tromey (10): Remove test code from cp-name-parser.y Allow initialization functions in .y files Clean up demangle_parse_info Change storage of demangle_component Fix C++ name canonicalizations of character literals Remove some unnecessary allocations from cpname_state::parse_number Fix C++ canonicalization of hex literals Implement C++14 numeric separators Allow function types as template parameters in name canonicalizer Add spaceship operator to cp-name-parser.y gdb/Makefile.in | 19 +-- gdb/c-exp.y | 28 +++- gdb/cp-name-parser.y | 374 +++++++++++++++++------------------------- gdb/cp-support.c | 9 +- gdb/cp-support.h | 19 +-- gdb/testsuite/gdb.cp/misc.exp | 4 + gdb/yy-remap.h | 4 - 7 files changed, 186 insertions(+), 271 deletions(-) --- base-commit: 7e9ef24e4a72d8d174932c7dd6be44226328ab88 change-id: 20240421-canon-fixes-28ad0802b238 Best regards, -- Tom Tromey