[PATCH v1 2/8] aarch64: constify unchanged char* arguments
Richard Earnshaw (lists)
Richard.Earnshaw@arm.com
Tue Nov 5 17:15:10 GMT 2024
On 23/10/2024 11:48, Matthieu Longo wrote:
> ---
> gas/config/tc-aarch64.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/gas/config/tc-aarch64.c b/gas/config/tc-aarch64.c
> index e94a0cff406..f5beea5bfe9 100644
> --- a/gas/config/tc-aarch64.c
> +++ b/gas/config/tc-aarch64.c
> @@ -6245,7 +6245,7 @@ lookup_mnemonic (const char *start, int len)
> (if any) and END points to the end of the mnemonic. */
>
> static templates *
> -opcode_lookup (char *base, char *dot, char *end)
> +opcode_lookup (const char *base, const char *dot, const char *end)
> {
> const aarch64_cond *cond;
> char condname[16];
OK, though pedantically it's not the arguments that don't change, but the objects they point to.
R.
More information about the Binutils
mailing list