diff options
author | Alan Modra <amodra@gmail.com> | 2022-07-05 13:26:38 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2022-07-09 21:23:00 +0930 |
commit | ed2917de68fe1ae3f279cef3b48c6464c75e9d72 (patch) | |
tree | ba4bd01e9de24ec8372dc32cb8041fe5bb2ebdc3 /gas/config/tc-alpha.c | |
parent | af3d7ab74f0aff2eb2af68d0d1df2e27e5757ecd (diff) | |
download | fsf-binutils-gdb-ed2917de68fe1ae3f279cef3b48c6464c75e9d72.zip fsf-binutils-gdb-ed2917de68fe1ae3f279cef3b48c6464c75e9d72.tar.gz fsf-binutils-gdb-ed2917de68fe1ae3f279cef3b48c6464c75e9d72.tar.bz2 |
gas: rename md_end to md_finish
Currently md_end is typically used for some final actions rather than
freeing memory like other *_end functions. Rename it to md_finish,
and rename target implementation. The renaming of target functions
makes it possible to find them all with "grep md_finish",
eg. md_mips_end is renamed to mips_md_finish, not md_mips_finish.
This patch leaves a number of md_end functions unchanged, those that
either do nothing or deallocate memory, and calls them late.
The idea here is that target maintainers implement md_end functions to
tidy memory, if anyone cares. Freeing persistent memory in gas is
not at all important, except that it can hide more important memory
leaks, those that happen once per some frequent gas operation, amongst
these unimportant memory leaks.
* as.c (main): Rename md_end to md_finish.
* config/tc-alpha.c, * config/tc-alpha.h,
* config/tc-arc.c, * config/tc-arc.h,
* config/tc-arm.c, * config/tc-arm.h,
* config/tc-csky.c, * config/tc-csky.h,
* config/tc-ia64.c, * config/tc-ia64.h,
* config/tc-mcore.c, * config/tc-mcore.h,
* config/tc-mips.c, * config/tc-mips.h,
* config/tc-mmix.c, * config/tc-mmix.h,
* config/tc-msp430.c, * config/tc-msp430.h,
* config/tc-nds32.c, * config/tc-nds32.h,
* config/tc-ppc.c, * config/tc-ppc.h,
* config/tc-pru.c, * config/tc-pru.h,
* config/tc-riscv.c, * config/tc-riscv.h,
* config/tc-s390.c, * config/tc-s390.h,
* config/tc-sparc.c, * config/tc-sparc.h,
* config/tc-tic4x.c, * config/tc-tic4x.h,
* config/tc-tic6x.c, * config/tc-tic6x.h,
* config/tc-v850.c, * config/tc-v850.h,
* config/tc-xtensa.c, * config/tc-xtensa.h,
* config/tc-z80.c, * config/tc-z80.h: Similarly.
* output-file.c (output_file_close): Call md_end.
Diffstat (limited to 'gas/config/tc-alpha.c')
-rw-r--r-- | gas/config/tc-alpha.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gas/config/tc-alpha.c b/gas/config/tc-alpha.c index a1b2761..ecc6a2f 100644 --- a/gas/config/tc-alpha.c +++ b/gas/config/tc-alpha.c @@ -4030,7 +4030,7 @@ s_alpha_coff_wrapper (int which) unless the compiler has done it for us. */ void -alpha_elf_md_end (void) +alpha_elf_md_finish (void) { struct alpha_elf_frame_data *p; |