[binutils-gdb] aarch64: constify unchanged char* arguments

Matthieu Longo mlongo@sourceware.org
Fri Nov 8 11:36:31 GMT 2024


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=a924330947ff168230a32d5abf0613ec6f680af7

commit a924330947ff168230a32d5abf0613ec6f680af7
Author: Matthieu Longo <matthieu.longo@arm.com>
Date:   Fri Jun 7 16:59:57 2024 +0100

    aarch64: constify unchanged char* arguments

Diff:
---
 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 4970acee19b..d272a5735fe 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];


More information about the Binutils-cvs mailing list