]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gas: put emul decls in emul.h
authorJan Beulich <jbeulich@suse.com>
Fri, 4 Oct 2024 07:36:24 +0000 (09:36 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 4 Oct 2024 07:36:24 +0000 (09:36 +0200)
commitc41215350b049439974f304b4e232ec3e73a72a0
tree724a7b27892a4c4414260480ac216e35b0feb106
parent2ced0b79da9839083e7a1f4657b39ba0ae317ab5
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.)
gas/as.c
gas/emul.h
gas/obj.h