]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gas: drop generate_asm_lineno emulation hook
authorJan Beulich <jbeulich@suse.com>
Fri, 4 Oct 2024 07:38:05 +0000 (09:38 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 4 Oct 2024 07:38:05 +0000 (09:38 +0200)
It's not wired up, so can't be used.

gas/config/obj-aout.c
gas/config/obj-coff.c
gas/config/obj-ecoff.c
gas/config/obj-elf.c
gas/obj.h

index d6384d8bed8deb70906ca236077fbab1af379f4b..8916443482046be18439864e7e77b92f46725362 100644 (file)
@@ -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.  */
index 66552412446d82a8b67307d726fc605d68b6f560..4f5973a18c9611f537d978d4805535068fdde0b4 100644 (file)
@@ -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,
index 9dfa0ee9cb7615339b8e582fcc877a2c1f651d75..7ef9bb4b7786d1d4bb7e3de52839cd2c8fa74bb2 100644 (file)
@@ -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.  */
index 93a15892450b4a7a4eca0f77b82792d29db15463..1bed3ff0ff2250ef73c89304c0a5b6a3e3675796 100644 (file)
@@ -3190,15 +3190,6 @@ elf_frob_file_after_relocs (void)
 #endif /* NEED_ECOFF_DEBUG */
 }
 
-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,
@@ -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,
index 672cf3ff06cce1dfde3f3a532563365cb1a0e479..972fa928126c692a7cf094af49e6491e4c8d90cb 100644 (file)
--- 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);