Wed Jun 3 18:21:56 1998 Alan Modra <alan@spri.levels.unisa.edu.au>
authorIan Lance Taylor <ian@airs.com>
Wed, 3 Jun 1998 23:11:04 +0000 (23:11 +0000)
committerIan Lance Taylor <ian@airs.com>
Wed, 3 Jun 1998 23:11:04 +0000 (23:11 +0000)
commitaa56747a9b90a494f26fd389f8c9d1126a999db3
treebf4ebe0da133a70566b1deac6bf95b475d651920
parent06f9c743fc171bca1004e2b8c713982dadc38a77
Wed Jun  3 18:21:56 1998  Alan Modra  <alan@spri.levels.unisa.edu.au>

* config/tc-i386.c (END_STRING_AND_SAVE): Protect arguments of
macros and enclose in do while(0).
(RESTORE_END_STRING): Likewise.
(md_assemble): Add one to printed operand number so we start
from 1 not 0.  Add some more gettext invocations.
(i386_operand): Fix `%%s' -> `%%%s'. Inc printed operand
number here too.

* config/tc-i386.h (WAIT_PREFIX, LOCKREP_PREFIX, ADDR_PREFIX,
DATA_PREFIX, SEG_PREFIX): Define.
* config/tc-i386.c (struct _i386_insn): Remove wait_prefix field.
(check_prefix): Remove function.
(add_prefix): New function.  Add prefix to i.prefix as well as
doing checks.
(md_assemble): Changes for add_prefix. Remove hack for wait
prefix, instead always output prefixes in fixed order. Test
for jcxz/loop when selecting between word & dword operations,
and add address size prefix rather than operand size prefix.
Remove operand -> address size hack when emitting jcxz/loop.
(i386_operand): Remove O_Absent check as it's done in expr.
gas/ChangeLog
gas/config/tc-i386.c
gas/config/tc-i386.h