[PATCH 5/9] gas: drop generate_asm_lineno emulation hook

Jan Beulich jbeulich@suse.com
Fri Sep 27 13:03:53 GMT 2024


It's not wired up, so can't be used.

--- a/gas/config/obj-aout.c
+++ b/gas/config/obj-aout.c
@@ -315,7 +315,6 @@ const struct format_ops aout_format_ops
   obj_aout_s_get_type,
   obj_aout_s_set_type,
   0,	/* copy_symbol_attributes.  */
-  0,	/* generate_asm_lineno.  */
   obj_aout_process_stab,
   obj_aout_separate_stab_sections,
   0,	/* init_stab_section.  */
--- a/gas/config/obj-coff.c
+++ b/gas/config/obj-coff.c
@@ -1936,7 +1936,6 @@ const struct format_ops coff_format_ops
   0,	/* s_get_type */
   0,	/* s_set_type */
   0,	/* copy_symbol_attributes */
-  0,	/* generate_asm_lineno */
   0,	/* process_stab */
   coff_separate_stab_sections,
   obj_coff_init_stab_section,
--- a/gas/config/obj-ecoff.c
+++ b/gas/config/obj-ecoff.c
@@ -310,7 +310,6 @@ const struct format_ops ecoff_format_ops
   0,	/* s_get_type.  */
   0,	/* s_set_type.  */
   0,	/* copy_symbol_attributes.  */
-  ecoff_generate_asm_lineno,
   ecoff_stab,
   ecoff_separate_stab_sections,
   0,	/* init_stab_section.  */
--- a/gas/config/obj-elf.c
+++ b/gas/config/obj-elf.c
@@ -3191,15 +3191,6 @@ elf_frob_file_after_relocs (void)
 }
 
 static void
-elf_generate_asm_lineno (void)
-{
-#ifdef NEED_ECOFF_DEBUG
-  if (ECOFF_DEBUGGING)
-    ecoff_generate_asm_lineno ();
-#endif
-}
-
-static void
 elf_process_stab (int what ATTRIBUTE_UNUSED,
 		  const char *string ATTRIBUTE_UNUSED,
 		  int type ATTRIBUTE_UNUSED,
@@ -3297,7 +3288,6 @@ const struct format_ops elf_format_ops =
   0,	/* s_get_type */
   0,	/* s_set_type */
   elf_copy_symbol_attributes,
-  elf_generate_asm_lineno,
   elf_process_stab,
   elf_separate_stab_sections,
   elf_init_stab_section,
--- a/gas/obj.h
+++ b/gas/obj.h
@@ -63,7 +63,6 @@ struct format_ops {
   int (*s_get_type) (symbolS *);
   void (*s_set_type) (symbolS *, int);
   void (*copy_symbol_attributes) (symbolS *, symbolS *);
-  void (*generate_asm_lineno) (void);
   void (*process_stab) (int, const char *, int, int, int);
   int (*separate_stab_sections) (void);
   void (*init_stab_section) (segT, segT);



More information about the Binutils mailing list