diff options
author | Jan Beulich <jbeulich@suse.com> | 2024-10-04 09:36:24 +0200 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2024-10-04 09:36:24 +0200 |
commit | c41215350b049439974f304b4e232ec3e73a72a0 (patch) | |
tree | 724a7b27892a4c4414260480ac216e35b0feb106 /gas/as.c | |
parent | 2ced0b79da9839083e7a1f4657b39ba0ae317ab5 (diff) | |
download | gdb-c41215350b049439974f304b4e232ec3e73a72a0.zip gdb-c41215350b049439974f304b4e232ec3e73a72a0.tar.gz gdb-c41215350b049439974f304b4e232ec3e73a72a0.tar.bz2 |
gas: put emul decls in emul.h
The individual struct emulation instances shouldn't be declared in a .c
file; it and the producers of the symbols want to both see the
declarations, so declarations and definitions don't go out of sync. Move
these declarations to emul.h.
While there also adjust the conditional around this_format: That symbol
is never #define-d anywhere, and it's needed only when USE_EMULATIONS is
defined. (Really, when obj-multi isn't in use, it also is effectively
only ever written to.)
Diffstat (limited to 'gas/as.c')
-rw-r--r-- | gas/as.c | 4 |
1 files changed, 0 insertions, 4 deletions
@@ -130,10 +130,6 @@ static long start_time; #ifdef USE_EMULATIONS #define EMULATION_ENVIRON "AS_EMULATION" -extern struct emulation mipsbelf, mipslelf, mipself; -extern struct emulation i386coff, i386elf, i386aout; -extern struct emulation crisaout, criself; - static struct emulation *const emulations[] = { EMULATIONS }; static const int n_emulations = sizeof (emulations) / sizeof (emulations[0]); |