aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-i386-intel.c
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@novell.com>2018-08-03 09:30:02 +0200
committerJan Beulich <jbeulich@suse.com>2018-08-03 09:30:02 +0200
commitc48dadc9a87f4fc3408987fc4dbd312bed50da9c (patch)
treeabac271e381eddbc6174d2d5c8301df01bf09c29 /gas/config/tc-i386-intel.c
parent3ed12f02a20a487ce46b463746c52c2905e16c03 (diff)
downloadgdb-c48dadc9a87f4fc3408987fc4dbd312bed50da9c.zip
gdb-c48dadc9a87f4fc3408987fc4dbd312bed50da9c.tar.gz
gdb-c48dadc9a87f4fc3408987fc4dbd312bed50da9c.tar.bz2
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.
Diffstat (limited to 'gas/config/tc-i386-intel.c')
-rw-r--r--gas/config/tc-i386-intel.c4
1 files changed, 2 insertions, 2 deletions
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;