diff options
author | Alan Modra <amodra@gmail.com> | 2023-08-31 15:31:56 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2023-08-31 18:06:10 +0930 |
commit | 533300396936dd54adb9e76600c6b567f3fca794 (patch) | |
tree | 049178af8ef9d3bd23e0808a079e45aa03b607d1 /gas/stabs.c | |
parent | 959db212304e64751563bcaaacbdd28efd5016a7 (diff) | |
download | gdb-533300396936dd54adb9e76600c6b567f3fca794.zip gdb-533300396936dd54adb9e76600c6b567f3fca794.tar.gz gdb-533300396936dd54adb9e76600c6b567f3fca794.tar.bz2 |
gas OBJ_PROCESS_STAB
This macro and the supporting functions have an unused "seg" first
argument. Tidy that.
* config/obj-aout.c (obj_aout_process_stab): Delete first param.
* config/obj-ecoff.h (OBJ_PROCESS_STAB): Likewise.
* config/obj-elf.c (elf_process_stab): Likewise.
* config/obj-elf.h (OBJ_PROCESS_STAB): Likewise.
* config/obj-macho.h (OBJ_PROCESS_STAB): Likewise.
* config/obj-multi.h (OBJ_PROCESS_STAB): Likewise.
* ecoff.c (ecoff_stab): Likewise.
* ecoff.h (ecoff_stab): Likewise.
* obj.h (struct format_ops <process_stab>): Likewise.
* stabs.c (OBJ_PROCESS_STAB): Likewise.
Diffstat (limited to 'gas/stabs.c')
-rw-r--r-- | gas/stabs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gas/stabs.c b/gas/stabs.c index f650a48..6a462c4 100644 --- a/gas/stabs.c +++ b/gas/stabs.c @@ -145,7 +145,7 @@ get_stab_string_offset (const char *string, const char *stabstr_secname, #ifdef AOUT_STABS #ifndef OBJ_PROCESS_STAB -#define OBJ_PROCESS_STAB(SEG,W,S,T,O,D) aout_process_stab(W,S,T,O,D) +#define OBJ_PROCESS_STAB(W,S,T,O,D) aout_process_stab(W,S,T,O,D) #endif /* Here instead of obj-aout.c because other formats use it too. */ @@ -401,7 +401,7 @@ s_stab_generic (int what, } #ifdef OBJ_PROCESS_STAB - OBJ_PROCESS_STAB (seg, what, string, type, other, desc); + OBJ_PROCESS_STAB (what, string, type, other, desc); #endif subseg_set (saved_seg, saved_subseg); @@ -415,7 +415,7 @@ s_stab_generic (int what, obstack_free (¬es, stab_secname); } #ifdef OBJ_PROCESS_STAB - OBJ_PROCESS_STAB (0, what, string, type, other, desc); + OBJ_PROCESS_STAB (what, string, type, other, desc); #else abort (); #endif |