Don't waste space in prefix_opcd_indices

* ppc-dis.c (prefix_opcd_indices): Correct size.
This commit is contained in:
Alan Modra 2019-06-03 11:46:04 +09:30
parent 6187fc5364
commit 4f6d070adb
2 changed files with 5 additions and 1 deletions

View 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

View 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)))