* config/tc-h8300.c (md_assemble): Make sure characters after
slash and dot are lower-case.
This commit is contained in:
parent
8ad3c6b136
commit
0c0b9be051
|
@ -1,3 +1,8 @@
|
||||||
|
2003-07-22 Alexandre Oliva <aoliva@redhat.com>
|
||||||
|
|
||||||
|
* config/tc-h8300.c (md_assemble): Make sure characters after
|
||||||
|
slash and dot are lower-case.
|
||||||
|
|
||||||
2003-07-17 Nick Clifton <nickc@redhat.com>
|
2003-07-17 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
* po/es.po: New Spanish translation.
|
* po/es.po: New Spanish translation.
|
||||||
|
|
|
@ -1889,6 +1889,7 @@ md_assemble (str)
|
||||||
const struct h8_instruction *prev_instruction;
|
const struct h8_instruction *prev_instruction;
|
||||||
|
|
||||||
char *dot = 0;
|
char *dot = 0;
|
||||||
|
char *slash = 0;
|
||||||
char c;
|
char c;
|
||||||
int size, i;
|
int size, i;
|
||||||
|
|
||||||
|
@ -1908,6 +1909,8 @@ md_assemble (str)
|
||||||
op_end += 2;
|
op_end += 2;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
else if (*op_end == '/' && ! slash)
|
||||||
|
slash = op_end;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (op_end == op_start)
|
if (op_end == op_start)
|
||||||
|
@ -1918,6 +1921,12 @@ md_assemble (str)
|
||||||
|
|
||||||
*op_end = 0;
|
*op_end = 0;
|
||||||
|
|
||||||
|
/* The assembler stops scanning the opcode at slashes, so it fails
|
||||||
|
to make characters following them lower case. Fix them. */
|
||||||
|
if (slash)
|
||||||
|
while (*++slash)
|
||||||
|
*slash = TOLOWER (*slash);
|
||||||
|
|
||||||
instruction = (const struct h8_instruction *)
|
instruction = (const struct h8_instruction *)
|
||||||
hash_find (opcode_hash_control, op_start);
|
hash_find (opcode_hash_control, op_start);
|
||||||
|
|
||||||
|
@ -1950,7 +1959,7 @@ md_assemble (str)
|
||||||
size = SN;
|
size = SN;
|
||||||
if (dot)
|
if (dot)
|
||||||
{
|
{
|
||||||
switch (*dot)
|
switch (TOLOWER (*dot))
|
||||||
{
|
{
|
||||||
case 'b':
|
case 'b':
|
||||||
size = SB;
|
size = SB;
|
||||||
|
|
Loading…
Reference in New Issue