[binutils-gdb] aarch64: increase alias candidate limit in aarch64-gen

Richard Earnshaw via Binutils-cvs <[email protected]>
Newsgroups gmane.comp.gnu.binutils.cvs
Message-ID <[email protected]>
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=64244742a0bf41fcfe87ef4aea67724e5116a6f3

commit 64244742a0bf41fcfe87ef4aea67724e5116a6f3
Author: Muhammad Kamran <[email protected]>
Date:   Wed Aug 19 08:23:27 2026 +0000

    aarch64: increase alias candidate limit in aarch64-gen
    
    Increase max_num_aliases from 32 to 64 so that aarch64-gen can
    accommodate the additional HINT-space alias added for FEAT_PAuth_LR.
    
    The generated disassembler alias preference list can otherwise exceed
    the old fixed limit.

Diff:
---
 opcodes/aarch64-gen.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/opcodes/aarch64-gen.c b/opcodes/aarch64-gen.c
index a387cd4a1e0..abe4147f2c4 100644
--- a/opcodes/aarch64-gen.c
+++ b/opcodes/aarch64-gen.c
@@ -789,8 +789,8 @@ opcode_node *
 find_alias_opcode (const aarch64_opcode *opcode)
 {
   int i;
-  /* Assume maximum of 32 disassemble preference candidates.  */
-  const int max_num_aliases = 32;
+  /* Assume maximum of 64 disassemble preference candidates.  */
+  const int max_num_aliases = 64;
   const aarch64_opcode *ent;
   const aarch64_opcode *preferred[max_num_aliases + 1];
   opcode_node head, **next;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.