aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-d10v.c
diff options
context:
space:
mode:
authorMartin Hunt <hunt@redhat.com>1997-01-29 23:36:06 +0000
committerMartin Hunt <hunt@redhat.com>1997-01-29 23:36:06 +0000
commitdaa04fa206608d01551b0e8b49c78ecb7eb7f39c (patch)
tree10dd7c217d40926456724787a10315b4f23abc60 /gas/config/tc-d10v.c
parent0948199a7b45e3927dd7ae913cd42f56037091da (diff)
downloadgdb-daa04fa206608d01551b0e8b49c78ecb7eb7f39c.zip
gdb-daa04fa206608d01551b0e8b49c78ecb7eb7f39c.tar.gz
gdb-daa04fa206608d01551b0e8b49c78ecb7eb7f39c.tar.bz2
Wed Jan 29 15:31:12 1997 Martin M. Hunt <hunt@pizza.cygnus.com>
* config/tc-d10v.h (md_do_align): Add this hook to call d10v_cleanup() when a ".align" is detected. Fixes PR11487. * config/tc-d10v.c (find_opcode): Correctly calculate branch displacement when .aligns are present.
Diffstat (limited to 'gas/config/tc-d10v.c')
-rw-r--r--gas/config/tc-d10v.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/gas/config/tc-d10v.c b/gas/config/tc-d10v.c
index 04f50cd..e22fe27 100644
--- a/gas/config/tc-d10v.c
+++ b/gas/config/tc-d10v.c
@@ -912,9 +912,6 @@ md_assemble (str)
static int etype=0; /* saved extype. used for multiline instructions */
char *str2;
- for (str2 = str; *str2; str2++)
- *str2 = tolower(*str2);
-
if (etype == 0)
{
/* look for the special multiple instruction separators */
@@ -1027,7 +1024,7 @@ do_assemble (str, opcode)
&& !is_end_of_line[*op_end] && *op_end != ' ';
op_end++)
{
- name[nlen] = op_start[nlen];
+ name[nlen] = tolower(op_start[nlen]);
nlen++;
}
name[nlen] = 0;
@@ -1103,7 +1100,7 @@ find_opcode (opcode, myops)
/* calculate the current address by running through the previous frags */
/* and adding our current offset */
for (value = 0, f = frchain_now->frch_root; f; f = f->fr_next)
- value += f->fr_fix;
+ value += f->fr_fix + f->fr_offset;
if (flags & OPERAND_ADDR)
value = S_GET_VALUE(myops[opnum].X_add_symbol) - value -