From c48dadc9a87f4fc3408987fc4dbd312bed50da9c Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Fri, 3 Aug 2018 09:30:02 +0200 Subject: x86: drop "mem" operand type attribute No template specifies this bit, so there's no point recording it in the templates. Use a flags[] bit instead. --- gas/config/tc-i386-intel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gas/config/tc-i386-intel.c') diff --git a/gas/config/tc-i386-intel.c b/gas/config/tc-i386-intel.c index 26fc3ef..dd509d5 100644 --- a/gas/config/tc-i386-intel.c +++ b/gas/config/tc-i386-intel.c @@ -875,7 +875,7 @@ i386_intel_operand (char *operand_string, int got_a_float) i.mem_operands = 0; i.disp_operands = 0; i.imm_operands = 2; - i.types[0].bitfield.mem = 0; + i.flags[0] &= ~Operand_Mem; i.types[0].bitfield.disp16 = 0; i.types[0].bitfield.disp32 = 0; i.types[0].bitfield.disp32s = 0; @@ -1009,7 +1009,7 @@ i386_intel_operand (char *operand_string, int got_a_float) if (!i386_index_check (operand_string)) return 0; - i.types[this_operand].bitfield.mem = 1; + i.flags[this_operand] |= Operand_Mem; if (i.mem_operands == 0) i.memop1_string = xstrdup (operand_string); ++i.mem_operands; -- cgit v1.1