This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH 2/4] x86/Intel: drop pointless suffix setting for "fword ptr"
- From: Jan Beulich <jbeulich at suse dot com>
- To: "binutils at sourceware dot org" <binutils at sourceware dot org>
- Cc: "H.J. Lu" <hjl dot tools at gmail dot com>
- Date: Thu, 5 Dec 2019 08:39:51 +0100
- Subject: [PATCH 2/4] x86/Intel: drop pointless suffix setting for "fword ptr"
- References: <95e30688-f281-41ea-e9e2-c82692241972@suse.com>
No floating point insn accepts an "fword ptr" operand, so the "fword"
operand flag checking done by match_mem_size() is already sufficient;
the setting of the suffix has become meaningless anyway with
dc2be329b950 ("i386: Only check suffix in instruction mnemonic").
gas/
2019-12-XX Jan Beulich <jbeulich@suse.com>
* config/tc-i386-intel.c (i386_intel_operand): Don't set suffix
for floating point insns when handling O_fword_ptr.
--- a/gas/config/tc-i386-intel.c
+++ b/gas/config/tc-i386-intel.c
@@ -676,8 +676,6 @@ i386_intel_operand (char *operand_string
add_prefix (DATA_PREFIX_OPCODE);
suffix = LONG_DOUBLE_MNEM_SUFFIX;
}
- else
- suffix = BYTE_MNEM_SUFFIX; /* so it will cause an error */
break;
case O_qword_ptr: