[ARC] Reformat error messages.

gas/
2017-05-23  Claudiu Zissulescu <claziss@synopsys.com>

	* config/tc-arc.c (md_apply_fix): Use as_bad_where.
	(assemble_insn): Use as_bad.
This commit is contained in:
claziss
2017-05-23 12:18:11 +02:00
parent 8e7f04f17c
commit 6e3f3473e2
2 changed files with 16 additions and 10 deletions

View File

@ -1,3 +1,8 @@
2017-05-23 Claudiu Zissulescu <claziss@synopsys.com>
* config/tc-arc.c (md_apply_fix): Use as_bad_where.
(assemble_insn): Use as_bad.
2017-05-22 H.J. Lu <hongjiu.lu@intel.com> 2017-05-22 H.J. Lu <hongjiu.lu@intel.com>
* config/tc-i386.c (REX_PREFIX): Changed to 7. * config/tc-i386.c (REX_PREFIX): Changed to 7.

View File

@ -2966,8 +2966,10 @@ md_apply_fix (fixS *fixP,
break; break;
default: default:
if ((int) fixP->fx_r_type < 0) if ((int) fixP->fx_r_type < 0)
as_fatal (_("PC relative relocation not allowed for (internal) type %d"), as_bad_where (fixP->fx_file, fixP->fx_line,
fixP->fx_r_type); _("PC relative relocation not allowed for (internal)"
" type %d"),
fixP->fx_r_type);
break; break;
} }
} }
@ -3942,9 +3944,8 @@ assemble_insn (const struct arc_opcode *opcode,
{ {
case O_plt: case O_plt:
if (opcode->insn_class == JUMP) if (opcode->insn_class == JUMP)
as_bad_where (frag_now->fr_file, frag_now->fr_line, as_bad (_("Unable to use @plt relocation for insn %s"),
_("Unable to use @plt relocation for insn %s"), opcode->name);
opcode->name);
needGOTSymbol = TRUE; needGOTSymbol = TRUE;
reloc = find_reloc ("plt", opcode->name, reloc = find_reloc ("plt", opcode->name,
pflags, nflg, pflags, nflg,
@ -3962,9 +3963,8 @@ assemble_insn (const struct arc_opcode *opcode,
reloc = ARC_RELOC_TABLE (t->X_md)->reloc; reloc = ARC_RELOC_TABLE (t->X_md)->reloc;
if (arc_opcode_len (opcode) == 2 if (arc_opcode_len (opcode) == 2
|| opcode->insn_class == JUMP) || opcode->insn_class == JUMP)
as_bad_where (frag_now->fr_file, frag_now->fr_line, as_bad (_("Unable to use @pcl relocation for insn %s"),
_("Unable to use @pcl relocation for insn %s"), opcode->name);
opcode->name);
} }
else else
{ {
@ -4130,8 +4130,9 @@ assemble_insn (const struct arc_opcode *opcode,
/* Check if the current instruction is legally used. */ /* Check if the current instruction is legally used. */
if (arc_last_insns[1].has_delay_slot if (arc_last_insns[1].has_delay_slot
&& is_br_jmp_insn_p (arc_last_insns[0].opcode)) && is_br_jmp_insn_p (arc_last_insns[0].opcode))
as_bad_where (frag_now->fr_file, frag_now->fr_line, as_bad (_("Insn %s has a jump/branch instruction %s in its delay slot."),
_("A jump/branch instruction in delay slot.")); arc_last_insns[1].opcode->name,
arc_last_insns[0].opcode->name);
} }
void void