diff options
author | Jan Beulich <jbeulich@suse.com> | 2025-08-01 09:16:41 +0200 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2025-08-01 09:16:41 +0200 |
commit | f79d7a8b4c93374fa8506c59b47f0dca57df8dc4 (patch) | |
tree | 7cdabe225488b9202974da2983c9015de76794ed /opcodes | |
parent | 85cced8e9b9942d223b3a54757d879000fc04b38 (diff) | |
download | binutils-f79d7a8b4c93374fa8506c59b47f0dca57df8dc4.zip binutils-f79d7a8b4c93374fa8506c59b47f0dca57df8dc4.tar.gz binutils-f79d7a8b4c93374fa8506c59b47f0dca57df8dc4.tar.bz2 |
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.
Diffstat (limited to 'opcodes')
-rw-r--r-- | opcodes/aarch64-dis.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/opcodes/aarch64-dis.c b/opcodes/aarch64-dis.c index 75ff871..179addc 100644 --- a/opcodes/aarch64-dis.c +++ b/opcodes/aarch64-dis.c @@ -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; |