diff options
Diffstat (limited to 'gas/config/tc-cr16.c')
-rw-r--r-- | gas/config/tc-cr16.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/gas/config/tc-cr16.c b/gas/config/tc-cr16.c index 751a861..5bf088d 100644 --- a/gas/config/tc-cr16.c +++ b/gas/config/tc-cr16.c @@ -235,7 +235,7 @@ l_cons (int nbytes) if ((*(input_line_pointer) == '@') && (*(input_line_pointer +1) == 'c')) code_label = 1; - emit_expr (&exp, (unsigned int) nbytes); + emit_expr (&exp, nbytes); ++c; if ((*(input_line_pointer) == '@') && (*(input_line_pointer +1) == 'c')) { @@ -329,7 +329,7 @@ get_register (char *reg_name) { const reg_entry *rreg; - rreg = (const reg_entry *) str_hash_find (reg_hash, reg_name); + rreg = str_hash_find (reg_hash, reg_name); if (rreg != NULL) return rreg->value.reg_val; @@ -350,10 +350,10 @@ get_register_pair (char *reg_name) tmp_rp[0] = '('; strcat (tmp_rp, reg_name); strcat (tmp_rp,")"); - rreg = (const reg_entry *) str_hash_find (regp_hash, tmp_rp); + rreg = str_hash_find (regp_hash, tmp_rp); } else - rreg = (const reg_entry *) str_hash_find (regp_hash, reg_name); + rreg = str_hash_find (regp_hash, reg_name); if (rreg != NULL) return rreg->value.reg_val; @@ -368,7 +368,7 @@ get_index_register (char *reg_name) { const reg_entry *rreg; - rreg = (const reg_entry *) str_hash_find (reg_hash, reg_name); + rreg = str_hash_find (reg_hash, reg_name); if ((rreg != NULL) && ((rreg->value.reg_val == 12) || (rreg->value.reg_val == 13))) @@ -383,7 +383,7 @@ get_index_register_pair (char *reg_name) { const reg_entry *rreg; - rreg = (const reg_entry *) str_hash_find (regp_hash, reg_name); + rreg = str_hash_find (regp_hash, reg_name); if (rreg != NULL) { @@ -404,7 +404,7 @@ get_pregister (char *preg_name) { const reg_entry *prreg; - prreg = (const reg_entry *) str_hash_find (preg_hash, preg_name); + prreg = str_hash_find (preg_hash, preg_name); if (prreg != NULL) return prreg->value.preg_val; @@ -419,7 +419,7 @@ get_pregisterp (char *preg_name) { const reg_entry *prreg; - prreg = (const reg_entry *) str_hash_find (pregp_hash, preg_name); + prreg = str_hash_find (pregp_hash, preg_name); if (prreg != NULL) return prreg->value.preg_val; @@ -760,7 +760,7 @@ md_apply_fix (fixS *fixP, valueT *valP, segT seg) switch (fixP->fx_r_type) { case BFD_RELOC_CR16_NUM8: - bfd_put_8 (stdoutput, (unsigned char) val, buf); + bfd_put_8 (stdoutput, val, buf); break; case BFD_RELOC_CR16_NUM16: bfd_put_16 (stdoutput, val, buf); @@ -2456,7 +2456,7 @@ print_insn (ins *insn) /* Write the instruction encoding to frag. */ for (i = 0; i < insn_size; i++) { - md_number_to_chars (this_frag, (valueT) words[i], 2); + md_number_to_chars (this_frag, words[i], 2); this_frag += 2; } } @@ -2469,7 +2469,7 @@ cr16_assemble (const char *op, char *param) ins cr16_ins; /* Find the instruction. */ - instruction = (const inst *) str_hash_find (cr16_inst_hash, op); + instruction = str_hash_find (cr16_inst_hash, op); if (instruction == NULL) { as_bad (_("Unknown opcode: `%s'"), op); @@ -2514,7 +2514,7 @@ md_assemble (char *op) strcpy (param1, get_b_cc (op)); strcat (param1,","); strcat (param1, param); - param = (char *) ¶m1; + param = param1; cr16_assemble ("b", param); return; } @@ -2539,7 +2539,7 @@ md_assemble (char *op) { strcpy (param1, param); /* Find the instruction. */ - instruction = (const inst *) str_hash_find (cr16_inst_hash, op); + instruction = str_hash_find (cr16_inst_hash, op); parse_operands (&cr16_ins, param1); if (((&cr16_ins)->arg[0].type == arg_ic) && ((&cr16_ins)->arg[0].constant >= 0)) |