public inbox for binutils-cvs@sourceware.org
 help / color / mirror / Atom feed
* [binutils-gdb] gas: drop unused fields from struct segment_info_struct
@ 2023-12-01  7:30 Jan Beulich
  0 siblings, 0 replies; only message in thread
From: Jan Beulich @ 2023-12-01  7:30 UTC (permalink / raw)
  To: bfd-cvs

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=2d9b910d5612d802b3c68f04ec69b08e356c503e

commit 2d9b910d5612d802b3c68f04ec69b08e356c503e
Author: Jan Beulich <jbeulich@suse.com>
Date:   Fri Dec 1 08:29:33 2023 +0100

    gas: drop unused fields from struct segment_info_struct
    
    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)
 
   seginfo = obstack_alloc (&notes, sizeof (*seginfo));
   memset (seginfo, 0, sizeof (*seginfo));
-  seginfo->bfd_section = 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;
 
-  int user_stuff;
-
   /* Fixups for this segment.  This is only valid after the frchains
      are run together.  */
   fixS *fix_root;
   fixS *fix_tail;
 
-  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;
 
   /* Used by dwarf2dbg.c for this section's line table entries.  */

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-12-01  7:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-01  7:30 [binutils-gdb] gas: drop unused fields from struct segment_info_struct Jan Beulich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).