]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
MIPS/opcodes: Discard unused OP_SH, OP_MASK, and OP_OP macros
authorMaciej W. Rozycki <macro@redhat.com>
Fri, 19 Jul 2024 10:42:16 +0000 (11:42 +0100)
committerMaciej W. Rozycki <macro@redhat.com>
Fri, 19 Jul 2024 10:42:16 +0000 (11:42 +0100)
commit2a172ea63d2baa50801958f4565e785ac20a61df
tree0ae6c962d6eeeb08829e51635a91d27dbba029e7
parent0f3e1d2708a0fcc43f4e3c3d1cea92358eb1fc56
MIPS/opcodes: Discard unused OP_SH, OP_MASK, and OP_OP macros

As from commit ab90248154ba ("Add structures to describe MIPS
operands"), <https://sourceware.org/ml/binutils/2013-07/msg00135.html>,
the use of numerous regular MIPS and microMIPS OP_SH and OP_MASK macros
has been removed.

Similarly as from commit c3c0747817f4 ("Use operand structures for
MIPS16"), <https://sourceware.org/ml/binutils/2013-07/msg00136.html>,
the use of numerous MIPS16 OP_SH and OP_MASK macros has been removed.

And as from commit 9e12b7a2b022 ("Rewrite main mips_ip parsing loop"),
<https://sourceware.org/ml/binutils/2013-07/msg00139.html>, none of the
OP_OP macros are used anymore.

Discard all the unused macros then and only keep the small subset that
is still referred.  This simplifies maintenance and removes the need to
keep the artificial arrangement where some regular MIPS and microMIPS
macros expand to 0 and are kept for compatibility with the opposite ISA
mode only, as it used to be required before the commit referred.
include/opcode/mips.h