From e44823cfe5be5913ed4f7d2fba28f4a07d280da7 Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Mon, 9 May 2005 06:49:01 +0000 Subject: gas/ 2005-05-09 Jan Beulich * config/tc-i386.c (parse_insn): Disallow use of prefix separator and comma in Intel mode. include/opcode/ 2005-05-09 Jan Beulich * i386.h (i386_optab): Add ht and hnt. --- gas/ChangeLog | 5 +++++ gas/config/tc-i386.c | 7 ++++--- 2 files changed, 9 insertions(+), 3 deletions(-) (limited to 'gas') diff --git a/gas/ChangeLog b/gas/ChangeLog index a8cca7f..cf43685 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,5 +1,10 @@ 2005-05-09 Jan Beulich + * config/tc-i386.c (parse_insn): Disallow use of prefix separator + and comma in Intel mode. + +2005-05-09 Jan Beulich + * config/tc-i386.c (tc_x86_regname_to_dw2regnum): Correct 64-bit mode names to match ABI. Add more registers for 32-bit and 64-bit modes. Make name array static and const. Adjust lookup to account for NULL 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")); -- cgit v1.1