aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-h8500.c
diff options
context:
space:
mode:
authorSteve Chamberlain <sac@cygnus>1993-12-11 19:28:41 +0000
committerSteve Chamberlain <sac@cygnus>1993-12-11 19:28:41 +0000
commit2b5936ff87ad3044007ad8109db6d145b790b930 (patch)
treea5c14ceeb4685a7d32c4719c69495435afd25a64 /gas/config/tc-h8500.c
parent816153a3e3081ca92b9252c1e66e3a098e648774 (diff)
downloadgdb-2b5936ff87ad3044007ad8109db6d145b790b930.zip
gdb-2b5936ff87ad3044007ad8109db6d145b790b930.tar.gz
gdb-2b5936ff87ad3044007ad8109db6d145b790b930.tar.bz2
* config/tc-h8500.c (build_bytes): Get reloc type right for a
%page operation. (md_assemble): Don't modify input_line_pointer. (mdcoff_sizemachdep): New function. * config/tc-h8500.h (TC_COFF_SIZEMACHDEP): New macro. * config/tc-z8k.c (get_operand): Delete bogus check.
Diffstat (limited to 'gas/config/tc-h8500.c')
-rw-r--r--gas/config/tc-h8500.c16
1 files changed, 12 insertions, 4 deletions
diff --git a/gas/config/tc-h8500.c b/gas/config/tc-h8500.c
index ea3f335..2cea4dd 100644
--- a/gas/config/tc-h8500.c
+++ b/gas/config/tc-h8500.c
@@ -983,7 +983,7 @@ build_bytes (opcode, operand)
int p;
switch (immediate_inpage) {
case 'p':
- p = R_H8500_LOW16;
+ p = R_H8500_HIGH16;
break;
case 'h':
p = R_H8500_HIGH16;
@@ -1124,7 +1124,7 @@ DEFUN (md_assemble, (str),
return;
}
- input_line_pointer = get_operands (opcode, op_end, operand);
+ get_operands (opcode, op_end, operand);
prev_opcode = opcode;
opcode = get_specific (opcode, operand);
@@ -1378,7 +1378,7 @@ md_convert_frag (headers, fragP)
case C (SCB_F, UNDEF_WORD_DISP):
case C (SCB_TST, UNDEF_WORD_DISP):
/* This tried to be relaxed, but didn't manage it, it now needs a
- fix */
+ fix */
wordify_scb (buffer, &disp_size, &inst_size);
/* Make a reloc */
@@ -1409,7 +1409,6 @@ md_convert_frag (headers, fragP)
fragP->fr_fix += disp_size + inst_size;
fragP->fr_var = 0;
}
-
}
valueT
@@ -1639,4 +1638,13 @@ start_label (ptr)
return 1;
}
+
+int
+tc_coff_sizemachdep (frag)
+ fragS *frag;
+{
+ return md_relax_table[frag->fr_subtype].rlx_length;
+}
+
/* end of tc-h8500.c */
+