This is the mail archive of the binutils-cvs@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb] Remove strip_underscore from struct emulation


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

commit 86b0c8dda0b762fe3af25fb41bb04a63183d58d7
Author: Alan Modra <amodra@gmail.com>
Date:   Wed Mar 20 18:35:16 2019 +1030

    Remove strip_underscore from struct emulation
    
    This field is unused.  I would have liked to also remove
    leading_underscore and fake_label_name but in an i386-elf/coff/aout
    multi-obj setup those fields are used to select a different
    fake_label_name for aout.
    
    	* emul.h (struct emulation): Delete strip_underscore.
    	* emul-target.h (emul_strip_underscore): Don't define.
    	(emul_struct_name): Update initialization.

Diff:
---
 gas/ChangeLog     | 6 ++++++
 gas/emul-target.h | 6 +-----
 gas/emul.h        | 1 -
 3 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/gas/ChangeLog b/gas/ChangeLog
index 46a54f7..e2e882a 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,5 +1,11 @@
 2019-03-21  Alan Modra  <amodra@gmail.com>
 
+	* emul.h (struct emulation): Delete strip_underscore.
+	* emul-target.h (emul_strip_underscore): Don't define.
+	(emul_struct_name): Update initialization.
+
+2019-03-21  Alan Modra  <amodra@gmail.com>
+
 	* config/tc-d10v.c (md_apply_fix): Apply BFD_RELOC_8.
 	* config/tc-pdp11.c (md_apply_fix): Likewise.
 	* config/tc-d30v.c (md_apply_fix): Don't emit errors for BFD_RELOC_8,
diff --git a/gas/emul-target.h b/gas/emul-target.h
index bbc4ad1..92b9b1b 100644
--- a/gas/emul-target.h
+++ b/gas/emul-target.h
@@ -38,10 +38,6 @@
 #define emul_leading_underscore		2
 #endif
 
-#ifndef emul_strip_underscore
-#define emul_strip_underscore		0
-#endif
-
 #ifndef emul_default_endian
 #define emul_default_endian		2
 #endif
@@ -57,7 +53,7 @@ struct emulation emul_struct_name =
     emul_init,
     emul_bfd_name,
     emul_local_labels_fb, emul_local_labels_dollar,
-    emul_leading_underscore, emul_strip_underscore,
+    emul_leading_underscore,
     emul_default_endian,
     emul_fake_label_name,
     emul_format,
diff --git a/gas/emul.h b/gas/emul.h
index 7cf8c85..9266c65 100644
--- a/gas/emul.h
+++ b/gas/emul.h
@@ -30,7 +30,6 @@ struct emulation
     unsigned                  local_labels_fb : 1;
     unsigned                  local_labels_dollar : 1;
     unsigned                  leading_underscore : 2;
-    unsigned                  strip_underscore : 1;
     unsigned                  default_endian : 2;
     const char *              fake_label_name;
     const struct format_ops * format;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]