From d6b42c30358d3f542a11cdf700592e15ee42d86e Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Fri, 4 Oct 2024 09:38:05 +0200 Subject: [PATCH] gas: drop generate_asm_lineno emulation hook It's not wired up, so can't be used. --- gas/config/obj-aout.c | 1 - gas/config/obj-coff.c | 1 - gas/config/obj-ecoff.c | 1 - gas/config/obj-elf.c | 10 ---------- gas/obj.h | 1 - 5 files changed, 14 deletions(-) diff --git a/gas/config/obj-aout.c b/gas/config/obj-aout.c index d6384d8bed8..89164434820 100644 --- 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. */ diff --git a/gas/config/obj-coff.c b/gas/config/obj-coff.c index 66552412446..4f5973a18c9 100644 --- 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, diff --git a/gas/config/obj-ecoff.c b/gas/config/obj-ecoff.c index 9dfa0ee9cb7..7ef9bb4b778 100644 --- 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. */ diff --git a/gas/config/obj-elf.c b/gas/config/obj-elf.c index 93a15892450..1bed3ff0ff2 100644 --- a/gas/config/obj-elf.c +++ b/gas/config/obj-elf.c @@ -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, diff --git a/gas/obj.h b/gas/obj.h index 672cf3ff06c..972fa928126 100644 --- 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);