From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id cZHTEWUTuGliEiwAWB0awg (envelope-from ) for ; Mon, 16 Mar 2026 10:27:49 -0400 Received: by simark.ca (Postfix, from userid 112) id 426C91E0C3; Mon, 16 Mar 2026 10:27:49 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-2.3 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,RCVD_IN_VALIDITY_RPBL_BLOCKED, RCVD_IN_VALIDITY_SAFE_BLOCKED autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [38.145.34.32]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 328191E0A2 for ; Mon, 16 Mar 2026 10:27:48 -0400 (EDT) Received: from vm01.sourceware.org (localhost [127.0.0.1]) by sourceware.org (Postfix) with ESMTP id B30ED4B1A353 for ; Mon, 16 Mar 2026 14:27:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B30ED4B1A353 Received: from simark.ca (simark.ca [158.69.221.121]) by sourceware.org (Postfix) with ESMTPS id BA6944BAD155 for ; Mon, 16 Mar 2026 14:26:51 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org BA6944BAD155 Authentication-Results: sourceware.org; dmarc=fail (p=none dis=none) header.from=efficios.com Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=efficios.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org BA6944BAD155 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=158.69.221.121 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1773671211; cv=none; b=WtnPj8BPbUmqxoMRlbBAfPIHykIBrYgwz22CNPgvCZsXHelunyg60ZHP1FkPKpGrjPpR0FWUzK9O2Z4dj84ECLeSzLYsrqfSKWDFDKlgGDcv4+u0nnet2i9HVqRUKvEYwcotju4250810YwNBCYSd9DkiuPVVJZJGD7EfCsTCCw= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1773671211; c=relaxed/simple; bh=frrZVix8rYZ35LKct1He5WhL75816aw36kmCUvBWoaA=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=Zk62id4TC+wnoYdC7JMpIODC4scJmxa4dcGxB3v4eWj1GAH3TmLWMaLPXAm0nKt0FJiZu/ORgadFGRr90L25s13kTVOOCp16z7lOk7tB8jsBOqTb9SHcZSpljA8pPppXTNcc2KKhBGJfEAMzJYPToSVgjymfaTuF60x/aI9BM04= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BA6944BAD155 Received: by simark.ca (Postfix) id 582761E0D1; Mon, 16 Mar 2026 10:26:50 -0400 (EDT) From: Simon Marchi To: gdb-patches@sourceware.org Cc: Simon Marchi Subject: [PATCH 5/6] gdb: remove TYPE_RVALUE_REFERENCE_TYPE Date: Mon, 16 Mar 2026 10:25:22 -0400 Message-ID: <20260316142645.26877-6-simon.marchi@efficios.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260316142645.26877-1-simon.marchi@efficios.com> References: <20260316142645.26877-1-simon.marchi@efficios.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org From: Simon Marchi IMO, there is no point in keeping this macro. Remove it and access the field directly. If we ever want some kind of abstraction in front of the field, then we'll add a method. Change-Id: Ic1e6ee65f7fda78a40e935b1e6a8e3b7ab5540fb --- gdb/gdbtypes.c | 4 ++-- gdb/gdbtypes.h | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c index feea1e9333be..a32dcfb56991 100644 --- a/gdb/gdbtypes.c +++ b/gdb/gdbtypes.c @@ -419,7 +419,7 @@ make_reference_type (type *type, type_code refcode) gdb_assert (refcode == TYPE_CODE_REF || refcode == TYPE_CODE_RVALUE_REF); ntype = (refcode == TYPE_CODE_REF ? type->reference_type - : TYPE_RVALUE_REFERENCE_TYPE (type)); + : type->rvalue_reference_type); if (ntype) return ntype; @@ -427,7 +427,7 @@ make_reference_type (type *type, type_code refcode) ntype = type_allocator (type).new_type (); ntype->set_target_type (type); reftype = (refcode == TYPE_CODE_REF ? &type->reference_type - : &TYPE_RVALUE_REFERENCE_TYPE (type)); + : &type->rvalue_reference_type); *reftype = ntype; diff --git a/gdb/gdbtypes.h b/gdb/gdbtypes.h index e241da402808..afca3c9f6368 100644 --- a/gdb/gdbtypes.h +++ b/gdb/gdbtypes.h @@ -1897,7 +1897,6 @@ extern void allocate_gnat_aux_type (struct type *); (TYPE_SPECIFIC_FIELD (type) = TYPE_SPECIFIC_FIXED_POINT, \ allocate_fixed_point_type_info (type)) -#define TYPE_RVALUE_REFERENCE_TYPE(thistype) (thistype)->rvalue_reference_type #define TYPE_CHAIN(thistype) (thistype)->chain /* * Return the alignment of the type in target addressable memory -- 2.53.0