mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-07-14 03:40:52 +08:00
* config/tc-i386.c (i386_operand): Detect non-segment registers
used as segment prefixes.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
Tue Sep 8 15:56:19 1998 Richard Henderson <rth@cygnus.com>
|
||||||
|
|
||||||
|
* config/tc-i386.c (i386_operand): Detect non-segment registers
|
||||||
|
used as segment prefixes.
|
||||||
|
|
||||||
Sat Sep 5 19:00:38 1998 Ian Lance Taylor <ian@cygnus.com>
|
Sat Sep 5 19:00:38 1998 Ian Lance Taylor <ian@cygnus.com>
|
||||||
|
|
||||||
* ehopt.c (check_eh_frame): Check the size of the FDE, and don't
|
* ehopt.c (check_eh_frame): Check the size of the FDE, and don't
|
||||||
|
@ -2283,7 +2283,9 @@ i386_operand (operand_string)
|
|||||||
op_string = end_op;
|
op_string = end_op;
|
||||||
if (is_space_char (*op_string))
|
if (is_space_char (*op_string))
|
||||||
++op_string;
|
++op_string;
|
||||||
if ((r->reg_type & (SReg2 | SReg3)) && *op_string == ':')
|
if (*op_string)
|
||||||
|
{
|
||||||
|
if (r->reg_type & (SReg2 | SReg3))
|
||||||
{
|
{
|
||||||
switch (r->reg_num)
|
switch (r->reg_num)
|
||||||
{
|
{
|
||||||
@ -2312,9 +2314,12 @@ i386_operand (operand_string)
|
|||||||
if (is_space_char (*op_string))
|
if (is_space_char (*op_string))
|
||||||
++op_string;
|
++op_string;
|
||||||
|
|
||||||
operand_string = op_string; /* Pretend given string starts here. */
|
/* Pretend given string starts here. */
|
||||||
if (!is_digit_char (*op_string) && !is_identifier_char (*op_string)
|
operand_string = op_string;
|
||||||
&& *op_string != '(' && *op_string != ABSOLUTE_PREFIX)
|
if (!is_digit_char (*op_string)
|
||||||
|
&& !is_identifier_char (*op_string)
|
||||||
|
&& *op_string != '('
|
||||||
|
&& *op_string != ABSOLUTE_PREFIX)
|
||||||
{
|
{
|
||||||
as_bad (_("bad memory operand `%s'"), op_string);
|
as_bad (_("bad memory operand `%s'"), op_string);
|
||||||
return 0;
|
return 0;
|
||||||
@ -2329,6 +2334,13 @@ i386_operand (operand_string)
|
|||||||
}
|
}
|
||||||
goto do_memory_reference;
|
goto do_memory_reference;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
as_bad (_("bad segment prefix `%c%s'"),
|
||||||
|
REGISTER_PREFIX, r->reg_name);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
i.types[this_operand] |= r->reg_type & ~BaseIndex;
|
i.types[this_operand] |= r->reg_type & ~BaseIndex;
|
||||||
i.regs[this_operand] = r;
|
i.regs[this_operand] = r;
|
||||||
i.reg_operands++;
|
i.reg_operands++;
|
||||||
|
Reference in New Issue
Block a user