aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-i386.c
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@novell.com>2005-05-09 06:49:01 +0000
committerJan Beulich <jbeulich@novell.com>2005-05-09 06:49:01 +0000
commite44823cfe5be5913ed4f7d2fba28f4a07d280da7 (patch)
treea0eecf4aab42280036057cadbb627d87411854b5 /gas/config/tc-i386.c
parent089dfecdde9d6ef28dc2131603dab78e0668c32f (diff)
downloadgdb-e44823cfe5be5913ed4f7d2fba28f4a07d280da7.zip
gdb-e44823cfe5be5913ed4f7d2fba28f4a07d280da7.tar.gz
gdb-e44823cfe5be5913ed4f7d2fba28f4a07d280da7.tar.bz2
gas/
2005-05-09 Jan Beulich <jbeulich@novell.com> * config/tc-i386.c (parse_insn): Disallow use of prefix separator and comma in Intel mode. include/opcode/ 2005-05-09 Jan Beulich <jbeulich@novell.com> * i386.h (i386_optab): Add ht and hnt.
Diffstat (limited to 'gas/config/tc-i386.c')
-rw-r--r--gas/config/tc-i386.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c
index be4d814..baf3583 100644
--- a/gas/config/tc-i386.c
+++ b/gas/config/tc-i386.c
@@ -1606,8 +1606,9 @@ parse_insn (line, mnemonic)
}
if (!is_space_char (*l)
&& *l != END_OF_INSN
- && *l != PREFIX_SEPARATOR
- && *l != ',')
+ && (intel_syntax
+ || (*l != PREFIX_SEPARATOR
+ && *l != ',')))
{
as_bad (_("invalid character %s in mnemonic"),
output_invalid (*l));
@@ -1615,7 +1616,7 @@ parse_insn (line, mnemonic)
}
if (token_start == l)
{
- if (*l == PREFIX_SEPARATOR)
+ if (!intel_syntax && *l == PREFIX_SEPARATOR)
as_bad (_("expecting prefix; got nothing"));
else
as_bad (_("expecting mnemonic; got nothing"));