This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
PATCH: Use MAX_OPERANDS for operand_types array
- From: "H. J. Lu" <hjl at lucon dot org>
- To: binutils at sources dot redhat dot com
- Date: Sat, 9 Dec 2006 08:42:05 -0800
- Subject: PATCH: Use MAX_OPERANDS for operand_types array
i386 assembler defines MAX_OPERANDS. I am checking in this patch to
use it for operand_types array.
H.J.
----
2006-12-09 H.J. Lu <hongjiu.lu@intel.com>
* config/tc-i386.h (template): Use MAX_OPERANDS instead of 4
operand_types array.
--- gas/config/tc-i386.h.max 2006-12-06 10:16:03.000000000 -0800
+++ gas/config/tc-i386.h 2006-12-09 08:37:40.000000000 -0800
@@ -246,7 +246,7 @@ typedef struct
by OR'ing together all of the possible type masks. (e.g.
'operand_types[i] = Reg|Imm' specifies that operand i can be
either a register or an immediate operand. */
- unsigned int operand_types[4];
+ unsigned int operand_types[MAX_OPERANDS];
/* operand_types[i] bits */
/* register */