diff options
author | Alexandre Oliva <aoliva@redhat.com> | 2003-07-22 04:56:05 +0000 |
---|---|---|
committer | Alexandre Oliva <aoliva@redhat.com> | 2003-07-22 04:56:05 +0000 |
commit | 1690481a76328b829fe829e1e385c6f0fd55ea35 (patch) | |
tree | 5ec436903a02696641333f42c433893a819504db /gas/config/tc-h8300.c | |
parent | 8b9971a2ad4c0f8c9dbcbf63511f4f7f19ed361f (diff) | |
download | binutils-redhat-1690481a76328b829fe829e1e385c6f0fd55ea35.tar.gz |
* config/tc-h8300.c (md_assemble): Make sure characters after
slash and dot are lower-case.
Diffstat (limited to 'gas/config/tc-h8300.c')
-rw-r--r-- | gas/config/tc-h8300.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/gas/config/tc-h8300.c b/gas/config/tc-h8300.c index 4354b1a741..eeb09957e6 100644 --- a/gas/config/tc-h8300.c +++ b/gas/config/tc-h8300.c @@ -1889,6 +1889,7 @@ md_assemble (str) const struct h8_instruction *prev_instruction; char *dot = 0; + char *slash = 0; char c; int size, i; @@ -1908,6 +1909,8 @@ md_assemble (str) op_end += 2; break; } + else if (*op_end == '/' && ! slash) + slash = op_end; } if (op_end == op_start) @@ -1918,6 +1921,12 @@ md_assemble (str) *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 *) hash_find (opcode_hash_control, op_start); @@ -1950,7 +1959,7 @@ md_assemble (str) size = SN; if (dot) { - switch (*dot) + switch (TOLOWER (*dot)) { case 'b': size = SB; |