PATCH: Use MAX_OPERANDS for operand_types array
H. J. Lu
hjl@lucon.org
Sat Dec 9 16:42:00 GMT 2006
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 */
More information about the Binutils
mailing list