opcodes/aarch64: make aarch64_ext_ldst_reglist()'s data[] static const

There's no reason to have the compiler materialize such an object onto the
stack. And there's also no reason to allow the array to be modifiable.
This commit is contained in:
Jan Beulich
2025-08-01 09:16:41 +02:00
parent 85cced8e9b
commit f79d7a8b4c

View File

@@ -501,7 +501,7 @@ aarch64_ext_ldst_reglist (const aarch64_operand *self ATTRIBUTE_UNUSED,
/* Number of elements in each structure to be loaded/stored. */
unsigned expected_num = get_opcode_dependent_value (inst->opcode);
struct
static const struct
{
unsigned is_reserved;
unsigned num_regs;