From 709cf8da8a81986a3cc6e25aee3e030d127ea5fe Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Sat, 9 Dec 2006 16:43:41 +0000 Subject: [PATCH] 2006-12-09 H.J. Lu * config/tc-i386.h (template): Use MAX_OPERANDS instead of 4 operand_types array. --- gas/ChangeLog | 5 +++++ gas/config/tc-i386.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index fa89abe5a..ca35b3322 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2006-12-09 H.J. Lu + + * config/tc-i386.h (template): Use MAX_OPERANDS instead of 4 + operand_types array. + 2006-12-08 Christian Groessler * config/tc-z8k.c (whatreg): Add comment describing function. diff --git a/gas/config/tc-i386.h b/gas/config/tc-i386.h index 7cfe29b24..14cbbe0f9 100644 --- a/gas/config/tc-i386.h +++ b/gas/config/tc-i386.h @@ -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 */ -- 2.11.4.GIT