From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id eOalIwCZ718DTQAAWB0awg (envelope-from ) for ; Fri, 01 Jan 2021 16:49:52 -0500 Received: by simark.ca (Postfix, from userid 112) id 6C7871E590; Fri, 1 Jan 2021 16:49:52 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: * X-Spam-Status: No, score=1.6 required=5.0 tests=DKIM_SIGNED,MAILING_LIST_MULTI, RCVD_IN_BL_SPAMCOP_NET,RDNS_NONE,T_DKIM_INVALID,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.2 Received: from sourceware.org (unknown [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 0F1601F0C2 for ; Fri, 1 Jan 2021 16:49:43 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 7842E3938C3D; Fri, 1 Jan 2021 21:49:10 +0000 (GMT) Received: from gateway22.websitewelcome.com (gateway22.websitewelcome.com [192.185.46.187]) by sourceware.org (Postfix) with ESMTPS id E3D023939C1B for ; Fri, 1 Jan 2021 21:49:03 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org E3D023939C1B Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=tromey.com Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=tom@tromey.com Received: from cm16.websitewelcome.com (cm16.websitewelcome.com [100.42.49.19]) by gateway22.websitewelcome.com (Postfix) with ESMTP id 06B5B4633 for ; Fri, 1 Jan 2021 15:49:03 -0600 (CST) Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with SMTP id vSIAkXBJLHPnUvSIBkh029; Fri, 01 Jan 2021 15:49:03 -0600 X-Authority-Reason: nr=8 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Sender:Reply-To:Cc:Content-Type: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=sf7GzAlhT+AxgnVkHcXZGdGvqVC8ECQElOvP2KiZ97o=; b=kmbZZ3AUYQLmfRBgRyzAdvFBTA DB9WLqOxic48njAf6+2aim4jMoEVRff0cSBrM7PUty925arXxoT2U0n9x2V1GwN7HPqepPXDhN5jd zdy4qP0dkPQUeDNWSYhnVNAKB; Received: from 97-122-81-39.hlrn.qwest.net ([97.122.81.39]:60428 helo=localhost.localdomain) by box5379.bluehost.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1kvSIA-002A3B-RJ for gdb-patches@sourceware.org; Fri, 01 Jan 2021 14:49:02 -0700 From: Tom Tromey To: gdb-patches@sourceware.org Subject: [PATCH 193/203] Remove unused Ada opcodes Date: Fri, 1 Jan 2021 14:47:13 -0700 Message-Id: <20210101214723.1784144-194-tom@tromey.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210101214723.1784144-1-tom@tromey.com> References: <20210101214723.1784144-1-tom@tromey.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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.81.39 X-Source-L: No X-Exim-ID: 1kvSIA-002A3B-RJ X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 97-122-81-39.hlrn.qwest.net (localhost.localdomain) [97.122.81.39]:60428 X-Source-Auth: tom+tromey.com X-Email-Count: 194 X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces@sourceware.org Sender: "Gdb-patches" Several Ada expression opcodes are now unused, and can be removed. Most of these are handled in a different way by the code. OP_ATR_IMAGE, however, was never implemented. gdb/ChangeLog 2021-01-01 Tom Tromey * std-operator.def (OP_NAME, OP_ATR_IMAGE, OP_ATR_MODULUS) (OP_OTHERS, OP_CHOICES, OP_POSITIONAL, OP_DISCRETE_RANGE): Remove. --- gdb/ChangeLog | 6 ++++++ gdb/std-operator.def | 43 ------------------------------------------- 2 files changed, 6 insertions(+), 43 deletions(-) diff --git a/gdb/std-operator.def b/gdb/std-operator.def index ab94636b83f..dbd920974da 100644 --- a/gdb/std-operator.def +++ b/gdb/std-operator.def @@ -299,9 +299,6 @@ OP (OP_FUNC_STATIC_VAR) the GDB "::" operator, or the Modula-2 '.' operator. */ OP (OP_TYPE) -/* An un-looked-up identifier. */ -OP (OP_NAME) - /* An Objective C Foundation Class NSString constant. */ OP (OP_OBJC_NSSTRING) @@ -349,8 +346,6 @@ OP (TERNOP_IN_RANGE) OP (OP_ATR_FIRST) OP (OP_ATR_LAST) OP (OP_ATR_LENGTH) -OP (OP_ATR_IMAGE) -OP (OP_ATR_MODULUS) OP (OP_ATR_POS) OP (OP_ATR_SIZE) OP (OP_ATR_TAG) @@ -375,44 +370,6 @@ OP (UNOP_IN_RANGE) occur only as the right sides of assignments. */ OP (OP_AGGREGATE) -/* An others clause. Followed by a single expression. */ -OP (OP_OTHERS) - -/* An aggregate component association. A single immediate operand, N, - gives the number of choices that follow. This is followed by a second - OP_CHOICES operator. Next come N operands, each of which is an - expression, an OP_DISCRETE_RANGE, or an OP_NAME---the latter - for a simple name that must be a record component name and does - not correspond to a single existing symbol. After the N choice - indicators comes an expression giving the value. - - In an aggregate such as (X => E1, ...), where X is a simple - name, X could syntactically be either a component_selector_name - or an expression used as a discrete_choice, depending on the - aggregate's type context. Since this is not known at parsing - time, we don't attempt to disambiguate X if it has multiple - definitions, but instead supply an OP_NAME. If X has a single - definition, we represent it with an OP_VAR_VALUE, even though - it may turn out to be within a record aggregate. Aggregate - evaluation can use either OP_NAMEs or OP_VAR_VALUEs to get a - record field name, and can evaluate OP_VAR_VALUE normally to - get its value as an expression. Unfortunately, we lose out in - cases where X has multiple meanings and is part of an array - aggregate. I hope these are not common enough to annoy users, - who can work around the problem in any case by putting - parentheses around X. */ -OP (OP_CHOICES) - -/* A positional aggregate component association. The operator is - followed by a single integer indicating the position in the - aggregate (0-based), followed by a second OP_POSITIONAL. Next - follows a single expression giving the component value. */ -OP (OP_POSITIONAL) - -/* A range of values. Followed by two expressions giving the - upper and lower bounds of the range. */ -OP (OP_DISCRETE_RANGE) - /* ================ Fortran operators ================ */ /* This is EXACTLY like OP_FUNCALL but is semantically different. -- 2.26.2