[PATCH] opcodes/ppc: make ppc_opts[] static const
Alan Modra
amodra@gmail.com
Tue Jul 29 13:05:50 GMT 2025
On Mon, Jul 28, 2025 at 06:00:54PM +0200, Jan Beulich wrote:
> There's no reason to allow the array to be modifiable, nor for it to be
> globally visible.
True. Looks good to me.
> --- a/opcodes/ppc-dis.c
> +++ b/opcodes/ppc-dis.c
> @@ -72,7 +72,7 @@ struct ppc_mopt {
> ppc_cpu_t sticky;
> };
>
> -struct ppc_mopt ppc_opts[] = {
> +static const struct ppc_mopt ppc_opts[] = {
> { "403", PPC_OPCODE_PPC | PPC_OPCODE_403,
> 0 },
> { "405", PPC_OPCODE_PPC | PPC_OPCODE_403 | PPC_OPCODE_405,
--
Alan Modra
More information about the Binutils
mailing list