From: Jan Beulich Date: Fri, 1 Aug 2025 07:16:41 +0000 (+0200) Subject: opcodes/aarch64: make aarch64_ext_ldst_reglist()'s data[] static const X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f79d7a8b4c93374fa8506c59b47f0dca57df8dc4;p=thirdparty%2Fbinutils-gdb.git 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. --- diff --git a/opcodes/aarch64-dis.c b/opcodes/aarch64-dis.c index 75ff8717c64..179addc5e9f 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;