This is the mail archive of the
binutils-cvs@sourceware.org
mailing list for the binutils project.
[binutils-gdb] Don't waste space in prefix_opcd_indices
- From: Alan Modra <amodra at sourceware dot org>
- To: bfd-cvs at sourceware dot org
- Date: 3 Jun 2019 02:27:01 -0000
- Subject: [binutils-gdb] Don't waste space in prefix_opcd_indices
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=4f6d070adb32e61c3c61e621c6566fc2d5af2232
commit 4f6d070adb32e61c3c61e621c6566fc2d5af2232
Author: Alan Modra <amodra@gmail.com>
Date: Mon Jun 3 11:46:04 2019 +0930
Don't waste space in prefix_opcd_indices
* ppc-dis.c (prefix_opcd_indices): Correct size.
Diff:
---
opcodes/ChangeLog | 4 ++++
opcodes/ppc-dis.c | 2 +-
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog
index 8c881a2..3ee875d 100644
--- a/opcodes/ChangeLog
+++ b/opcodes/ChangeLog
@@ -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
diff --git a/opcodes/ppc-dis.c b/opcodes/ppc-dis.c
index 9334be2..2f5756b 100644
--- a/opcodes/ppc-dis.c
+++ b/opcodes/ppc-dis.c
@@ -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)))