This is the mail archive of the 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]

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 --git a/gas/emul-target.h b/gas/emul-target.h
index bbc4ad16d5..92b9b1b4be 100644
--- a/gas/emul-target.h
+++ b/gas/emul-target.h
@@ -38,10 +38,6 @@
 #define emul_leading_underscore		2
-#ifndef emul_strip_underscore
-#define emul_strip_underscore		0
 #ifndef emul_default_endian
 #define emul_default_endian		2
@@ -57,7 +53,7 @@ struct emulation emul_struct_name =
     emul_local_labels_fb, emul_local_labels_dollar,
-    emul_leading_underscore, emul_strip_underscore,
+    emul_leading_underscore,
diff --git a/gas/emul.h b/gas/emul.h
index 7cf8c85a9e..9266c65a50 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;

Alan Modra
Australia Development Lab, IBM

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