From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id JazaMjZy32pRnxwAWB0awg (envelope-from ) for ; Mon, 26 Oct 2026 11:31:02 -0400 Received: by simark.ca (Postfix, from userid 112) id B20011E023; Mon, 26 Oct 2026 11:31:02 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-5.3 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [IPv6:2620:52:6:3111::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 77B5D1E023 for ; Mon, 26 Oct 2026 11:31:01 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 0512C4BA23CB for ; Mon, 26 Oct 2026 15:31:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0512C4BA23CB Received: from simark.ca (simark.ca [158.69.221.121]) by sourceware.org (Postfix) with ESMTPS id 236154BA2E28 for ; Mon, 26 Oct 2026 15:30:37 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 236154BA2E28 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 236154BA2E28 Authentication-Results: sourceware.org; arc=none smtp.remote-ip=158.69.221.121 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1793028637; cv=none; b=ctePUT2dah+dYBnbh/KDWpvfpHswbfRup2t9TfqdtvszxkWIVgE1JyDws16EKU6jNDCcMvEOuuzMfLKSEtfs4nx9NsidsMpOxlZH56n8DNseu8J32x/26C/QrntKzzzvHag6KIWHf3/x2hWAmy1xJNx2hYR+pVdqFEUhT4R5P1M= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1793028637; c=relaxed/simple; bh=KHpPyrLH9xfRlKcWUCTDb1qwIkXxY6FSQ/suCRyhvao=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=bFzXUsz4/DD8BYKaFd9F80rf2dOHy1Bym22K+Sl3sZyVRPG+oQCQrIGrMZyMMqpEMkTHmI4VPZx5kTsHBHi0gj5ymfXc8O8UGnIV6oIs6JRC9muOsO7OMNcme35hjupcoEbihc3YryDa9g0FhcuDucTpDl+cECIDwF3NMD1cbX8= ARC-Authentication-Results: i=1; sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 236154BA2E28 Received: by simark.ca (Postfix) id 776491E023; Mon, 26 Oct 2026 11:30:35 -0400 (EDT) From: Simon Marchi To: gdb-patches@sourceware.org Cc: Simon Marchi Subject: [pushed] gdb/dwarf2: remove unneeded forward declarations in read.c Date: Mon, 26 Oct 2026 11:30:31 -0400 Message-ID: <20261026153034.1997601-1-simon.marchi@efficios.com> X-Mailer: git-send-email 2.56.0 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 Remove a few unneded forward declarations of static functions. Change-Id: I75f09c989b455e57e1aa2e20af8d4774f0569a36 --- gdb/dwarf2/read.c | 32 -------------------------------- 1 file changed, 32 deletions(-) diff --git a/gdb/dwarf2/read.c b/gdb/dwarf2/read.c index aac8f8fa70b5..39fc471b9ce9 100644 --- a/gdb/dwarf2/read.c +++ b/gdb/dwarf2/read.c @@ -527,10 +527,6 @@ static const char *read_indirect_string (dwarf2_per_objfile *per_objfile, bfd *, const gdb_byte *, const unit_head *, unsigned int *); -static unrelocated_addr read_addr_index_from_leb128 (struct dwarf2_cu *, - const gdb_byte *, - unsigned int *); - static const char *read_stub_str_index (struct dwarf2_cu *cu, ULONGEST str_index); @@ -573,11 +569,6 @@ static struct type *read_subrange_index_type (struct die_info *die, static struct type *die_type (struct die_info *, struct dwarf2_cu *); -static bool need_gnat_info (struct dwarf2_cu *); - -static struct type *die_descriptive_type (struct die_info *, - struct dwarf2_cu *); - static void set_descriptive_type (struct type *, struct die_info *, struct dwarf2_cu *); @@ -629,17 +620,6 @@ static void get_scope_pc_bounds (struct die_info *, static void dwarf2_record_block_ranges (struct die_info *, struct block *, struct dwarf2_cu *); -static void dwarf2_attach_fields_to_type (struct field_info *, - struct type *, struct dwarf2_cu *); - -static void dwarf2_add_member_fn (struct field_info *, - struct die_info *, struct type *, - struct dwarf2_cu *); - -static void dwarf2_attach_fn_fields_to_type (struct field_info *, - struct type *, - struct dwarf2_cu *); - static void process_structure_scope (struct die_info *, struct dwarf2_cu *); static void read_common_block (struct die_info *, struct dwarf2_cu *); @@ -648,15 +628,10 @@ static void read_namespace (struct die_info *die, struct dwarf2_cu *); static void read_module (struct die_info *die, struct dwarf2_cu *cu); -static struct using_direct **using_directives (struct dwarf2_cu *cu); - static void read_import_statement (struct die_info *die, struct dwarf2_cu *); static bool read_alias (struct die_info *die, struct dwarf2_cu *cu); -static struct type *read_module_type (struct die_info *die, - struct dwarf2_cu *cu); - static const char *namespace_name (struct die_info *die, int *is_anonymous, struct dwarf2_cu *); @@ -693,13 +668,6 @@ static struct die_info *follow_die_ref (struct die_info *, const struct attribute *, struct dwarf2_cu **); -static void fill_in_sig_entry_from_dwo_entry (dwarf2_per_objfile *per_objfile, - signatured_type *sig_entry, - dwo_unit *dwo_entry); - -static void fill_in_sig_entry_from_per_cu_hint - (dwarf2_per_objfile &per_objfile, signatured_type &sig_type); - static struct die_info *follow_die_sig (struct die_info *, const struct attribute *, struct dwarf2_cu **); base-commit: 50b7267f00c094614ab4efb43f7aac0507a436e7 -- 2.56.0