diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2009-12-16 20:08:32 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2009-12-16 20:08:32 +0000 |
commit | 2eb952a4d9091415769c814787db714334171b90 (patch) | |
tree | 17ae02c1c6529fd1ff70c9b52b146cc9ba54ad15 /gas/config | |
parent | 7f399153c6099e976a06562a602f9654f506b64e (diff) | |
download | gdb-2eb952a4d9091415769c814787db714334171b90.zip gdb-2eb952a4d9091415769c814787db714334171b90.tar.gz gdb-2eb952a4d9091415769c814787db714334171b90.tar.bz2 |
Remove ByteOkIntel.
gas/
2009-12-16 H.J. Lu <hongjiu.lu@intel.com>
* config/tc-i386.c (process_suffix): Set i.suffix to 0 in
Intel syntax if size is ignored and b/l/w suffixes are
illegal.
(check_byte_reg): Remove byteokintel check.
opcodes/
2009-12-16 H.J. Lu <hongjiu.lu@intel.com>
* i386-gen.c (opcode_modifiers): Remove ByteOkIntel.
* i386-opc.h (ByteOkIntel): Removed.
(i386_opcode_modifier): Remove byteokintel.
* i386-opc.tbl: Remove ByteOkIntel.
* i386-tbl.h: Regenerated.
Diffstat (limited to 'gas/config')
-rw-r--r-- | gas/config/tc-i386.c | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c index bd4ca3d..d29d07c 100644 --- a/gas/config/tc-i386.c +++ b/gas/config/tc-i386.c @@ -4178,12 +4178,20 @@ process_suffix (void) } else if (i.suffix == BYTE_MNEM_SUFFIX) { - if (!check_byte_reg ()) + if (intel_syntax + && i.tm.opcode_modifier.ignoresize + && i.tm.opcode_modifier.no_bsuf) + i.suffix = 0; + else if (!check_byte_reg ()) return 0; } else if (i.suffix == LONG_MNEM_SUFFIX) { - if (!check_long_reg ()) + if (intel_syntax + && i.tm.opcode_modifier.ignoresize + && i.tm.opcode_modifier.no_lsuf) + i.suffix = 0; + else if (!check_long_reg ()) return 0; } else if (i.suffix == QWORD_MNEM_SUFFIX) @@ -4197,7 +4205,11 @@ process_suffix (void) } else if (i.suffix == WORD_MNEM_SUFFIX) { - if (!check_word_reg ()) + if (intel_syntax + && i.tm.opcode_modifier.ignoresize + && i.tm.opcode_modifier.no_wsuf) + i.suffix = 0; + else if (!check_word_reg ()) return 0; } else if (i.suffix == XMMWORD_MNEM_SUFFIX @@ -4375,10 +4387,6 @@ check_byte_reg (void) if (i.types[op].bitfield.reg8) continue; - /* Don't generate this warning if not needed. */ - if (intel_syntax && i.tm.opcode_modifier.byteokintel) - continue; - /* crc32 doesn't generate this warning. */ if (i.tm.base_opcode == 0xf20f38f0) continue; |