Skip to content

Commit 86b0c8d

Browse files
committed
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.
1 parent 7553c86 commit 86b0c8d

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

gas/ChangeLog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
2019-03-21 Alan Modra <amodra@gmail.com>
2+
3+
* emul.h (struct emulation): Delete strip_underscore.
4+
* emul-target.h (emul_strip_underscore): Don't define.
5+
(emul_struct_name): Update initialization.
6+
17
2019-03-21 Alan Modra <amodra@gmail.com>
28

39
* config/tc-d10v.c (md_apply_fix): Apply BFD_RELOC_8.

gas/emul-target.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,6 @@
3838
#define emul_leading_underscore 2
3939
#endif
4040

41-
#ifndef emul_strip_underscore
42-
#define emul_strip_underscore 0
43-
#endif
44-
4541
#ifndef emul_default_endian
4642
#define emul_default_endian 2
4743
#endif
@@ -57,7 +53,7 @@ struct emulation emul_struct_name =
5753
emul_init,
5854
emul_bfd_name,
5955
emul_local_labels_fb, emul_local_labels_dollar,
60-
emul_leading_underscore, emul_strip_underscore,
56+
emul_leading_underscore,
6157
emul_default_endian,
6258
emul_fake_label_name,
6359
emul_format,

gas/emul.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ struct emulation
3030
unsigned local_labels_fb : 1;
3131
unsigned local_labels_dollar : 1;
3232
unsigned leading_underscore : 2;
33-
unsigned strip_underscore : 1;
3433
unsigned default_endian : 2;
3534
const char * fake_label_name;
3635
const struct format_ops * format;

0 commit comments

Comments
 (0)