[binutils-gdb] Delete rx and rl78 md_end

Alan Modra amodra@sourceware.org
Wed Mar 4 22:47:00 GMT 2026


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=35cb98f1ce2a108875f229feed2340b97b935b34

commit 35cb98f1ce2a108875f229feed2340b97b935b34
Author: Alan Modra <amodra@gmail.com>
Date:   Thu Mar 5 09:14:53 2026 +1030

    Delete rx and rl78 md_end
    
    There isn't much point in having functions that do nothing
    
            * config/tc-rl78.c (rl78_md_end): Delete.
            * config/tc-rl78.h (md_end): Don't define.
            * config/tc-rx.c (rx_md_end): Delete.
            * config/tc-rx.h (md_end): Don't define.

Diff:
---
 gas/config/tc-rl78.c | 5 -----
 gas/config/tc-rl78.h | 3 ---
 gas/config/tc-rx.c   | 5 -----
 gas/config/tc-rx.h   | 3 ---
 4 files changed, 16 deletions(-)

diff --git a/gas/config/tc-rl78.c b/gas/config/tc-rl78.c
index 62c7e422dad..a6fe5f24c01 100644
--- a/gas/config/tc-rl78.c
+++ b/gas/config/tc-rl78.c
@@ -403,11 +403,6 @@ md_begin (void)
   rl78_abs_sym = symbol_make ("__rl78_abs__");
 }
 
-void
-rl78_md_end (void)
-{
-}
-
 /* Set the ELF specific flags.  */
 void
 rl78_elf_final_processing (void)
diff --git a/gas/config/tc-rl78.h b/gas/config/tc-rl78.h
index 8147f55ebdd..9761d509aa1 100644
--- a/gas/config/tc-rl78.h
+++ b/gas/config/tc-rl78.h
@@ -46,9 +46,6 @@ extern int target_little_endian;
 /* .-foo gets turned into PC relative relocs.  */
 #define DIFF_EXPR_OK
 
-#define md_end rl78_md_end
-extern void rl78_md_end (void);
-
 #define md_relax_frag rl78_relax_frag
 extern int rl78_relax_frag (segT, fragS *, long);
 
diff --git a/gas/config/tc-rx.c b/gas/config/tc-rx.c
index fe260d8b758..794f64a54f4 100644
--- a/gas/config/tc-rx.c
+++ b/gas/config/tc-rx.c
@@ -1218,11 +1218,6 @@ md_assemble (char * str)
   dwarf2_emit_insn (idx);
 }
 
-void
-rx_md_end (void)
-{
-}
-
 /* Write a value out to the object file, using the appropriate endianness.  */
 
 void
diff --git a/gas/config/tc-rx.h b/gas/config/tc-rx.h
index b7d84f68cf5..8a37b36275d 100644
--- a/gas/config/tc-rx.h
+++ b/gas/config/tc-rx.h
@@ -51,9 +51,6 @@ extern int target_big_endian;
 /* .-foo gets turned into PC relative relocs.  */
 #define DIFF_EXPR_OK
 
-#define md_end rx_md_end
-extern void rx_md_end (void);
-
 /* Note - the definition of MD_RELAX_FRAG here includes a reference to the
    MAX_ITERATIONS variable which is defined locally in write.c:relax_segment()
    but which is not normally passed to target specific relaxing code.  This


More information about the Binutils-cvs mailing list