mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-11-16 12:34:43 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user