This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH] x86: use register_prefix in a few more places
- From: "Jan Beulich" <jbeulich at novell dot com>
- To: <binutils at sourceware dot org>
- Date: Wed, 27 Aug 2008 16:03:40 +0100
- Subject: [PATCH] x86: use register_prefix in a few more places
Built and tested on i686-pc-linux-gnu.
gas/
2008-08-27 Jan Beulich <jbeulich@novell.com>
* config/tc-i386.c (check_string): Use register_prefix for error
message.
(process_operands): Likewise.
--- 2008-08-27/gas/config/tc-i386.c 2008-08-27 15:33:14.000000000 +0200
+++ 2008-08-27/gas/config/tc-i386.c 2008-08-27 16:53:17.000000000 +0200
@@ -3861,9 +3861,10 @@ check_string (void)
{
if (i.seg[0] != NULL && i.seg[0] != &es)
{
- as_bad (_("`%s' operand %d must use `%%es' segment"),
+ as_bad (_("`%s' operand %d must use `%ses' segment"),
i.tm.name,
- mem_op + 1);
+ mem_op + 1,
+ register_prefix);
return 0;
}
/* There's only ever one segment override allowed per instruction.
@@ -3876,9 +3877,10 @@ check_string (void)
{
if (i.seg[1] != NULL && i.seg[1] != &es)
{
- as_bad (_("`%s' operand %d must use `%%es' segment"),
+ as_bad (_("`%s' operand %d must use `%ses' segment"),
i.tm.name,
- mem_op + 2);
+ mem_op + 2,
+ register_prefix);
return 0;
}
}
@@ -4957,7 +4959,7 @@ duplicate:
if (i.tm.base_opcode == POP_SEG_SHORT
&& i.op[0].regs->reg_num == 1)
{
- as_bad (_("you can't `pop %%cs'"));
+ as_bad (_("you can't `pop %scs'"), register_prefix);
return 0;
}
i.tm.base_opcode |= (i.op[0].regs->reg_num << 3);