Don't waste space in prefix_opcd_indices
authorAlan Modra <amodra@gmail.com>
Mon, 3 Jun 2019 02:16:04 +0000 (11:46 +0930)
committerAlan Modra <amodra@gmail.com>
Mon, 3 Jun 2019 02:20:51 +0000 (11:50 +0930)
* ppc-dis.c (prefix_opcd_indices): Correct size.

opcodes/ChangeLog
opcodes/ppc-dis.c

index 8c881a2..3ee875d 100644 (file)
@@ -1,3 +1,7 @@
+2019-06-03  Alan Modra  <amodra@gmail.com>
+
+       * ppc-dis.c (prefix_opcd_indices): Correct size.
+
 2019-05-28  H.J. Lu  <hongjiu.lu@intel.com>
 
        PR gas/24625
index 9334be2..2f5756b 100644 (file)
@@ -382,7 +382,7 @@ powerpc_init_dialect (struct disassemble_info *info)
 #define PPC_OPCD_SEGS (1 + PPC_OP (-1))
 static unsigned short powerpc_opcd_indices[PPC_OPCD_SEGS + 1];
 #define PREFIX_OPCD_SEGS (1 + PPC_PREFIX_SEG (-1))
-static unsigned short prefix_opcd_indices[PPC_OPCD_SEGS+1];
+static unsigned short prefix_opcd_indices[PREFIX_OPCD_SEGS + 1];
 #define VLE_OPCD_SEGS (1 + VLE_OP_TO_SEG (VLE_OP (-1, 0xffff)))
 static unsigned short vle_opcd_indices[VLE_OPCD_SEGS + 1];
 #define SPE2_OPCD_SEGS (1 + SPE2_XOP_TO_SEG (SPE2_XOP (-1)))