From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1386) id D719B3857B81; Fri, 1 Dec 2023 07:30:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D719B3857B81 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Jan Beulich To: bfd-cvs@sourceware.org Subject: [binutils-gdb] gas: drop unused fields from struct segment_info_struct X-Act-Checkin: binutils-gdb X-Git-Author: Jan Beulich X-Git-Refname: refs/heads/master X-Git-Oldrev: 0aa5d0c9e90a2bf26a99a0354ef500e971341de8 X-Git-Newrev: 2d9b910d5612d802b3c68f04ec69b08e356c503e Message-Id: <20231201073016.D719B3857B81@sourceware.org> Date: Fri, 1 Dec 2023 07:30:16 +0000 (GMT) X-BeenThere: binutils-cvs@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Binutils-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Dec 2023 07:30:17 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D2d9b910d5612= d802b3c68f04ec69b08e356c503e commit 2d9b910d5612d802b3c68f04ec69b08e356c503e Author: Jan Beulich Date: Fri Dec 1 08:29:33 2023 +0100 gas: drop unused fields from struct segment_info_struct =20 user_stuff, dot, and lineno_list_{head,tail} have no users (left), while bfd_section was only ever written. Diff: --- gas/subsegs.c | 1 - gas/subsegs.h | 12 +----------- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/gas/subsegs.c b/gas/subsegs.c index ae42b4e76d9..a74db52637a 100644 --- a/gas/subsegs.c +++ b/gas/subsegs.c @@ -61,7 +61,6 @@ alloc_seginfo (segT seg) =20 seginfo =3D obstack_alloc (¬es, sizeof (*seginfo)); memset (seginfo, 0, sizeof (*seginfo)); - seginfo->bfd_section =3D seg; bfd_set_section_userdata (seg, seginfo); } /* diff --git a/gas/subsegs.h b/gas/subsegs.h index ace0657bdfb..2bc7adacc56 100644 --- a/gas/subsegs.h +++ b/gas/subsegs.h @@ -71,23 +71,13 @@ typedef struct segment_info_struct { there are frags. */ unsigned int bss : 1; =20 - int user_stuff; - /* Fixups for this segment. This is only valid after the frchains are run together. */ fixS *fix_root; fixS *fix_tail; =20 - symbolS *dot; - - struct lineno_list *lineno_list_head; - struct lineno_list *lineno_list_tail; - - /* Which BFD section does this gas segment correspond to? */ - asection *bfd_section; - /* NULL, or pointer to the gas symbol that is the section symbol for - this section. sym->bsym and bfd_section->symbol should be the same. = */ + this section. */ symbolS *sym; =20 /* Used by dwarf2dbg.c for this section's line table entries. */