aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-arc.c
diff options
context:
space:
mode:
authorclaziss <claziss@synopsys.com>2017-05-23 12:18:11 +0200
committerclaziss <claziss@synopsys.com>2017-05-23 12:18:11 +0200
commit6e3f3473e2136e77d6346d5bca894c38e5389116 (patch)
tree6cb6ef7104e9388e67b24d8091a635158f8ea2e3 /gas/config/tc-arc.c
parent8e7f04f17c60069143078dafd3d3eb8cd15f10fb (diff)
downloadgdb-6e3f3473e2136e77d6346d5bca894c38e5389116.zip
gdb-6e3f3473e2136e77d6346d5bca894c38e5389116.tar.gz
gdb-6e3f3473e2136e77d6346d5bca894c38e5389116.tar.bz2
[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.
Diffstat (limited to 'gas/config/tc-arc.c')
-rw-r--r--gas/config/tc-arc.c21
1 files changed, 11 insertions, 10 deletions
diff --git a/gas/config/tc-arc.c b/gas/config/tc-arc.c
index a092892..173a1a0 100644
--- a/gas/config/tc-arc.c
+++ b/gas/config/tc-arc.c
@@ -2966,8 +2966,10 @@ md_apply_fix (fixS *fixP,
break;
default:
if ((int) fixP->fx_r_type < 0)
- as_fatal (_("PC relative relocation not allowed for (internal) type %d"),
- fixP->fx_r_type);
+ as_bad_where (fixP->fx_file, fixP->fx_line,
+ _("PC relative relocation not allowed for (internal)"
+ " type %d"),
+ fixP->fx_r_type);
break;
}
}
@@ -3942,9 +3944,8 @@ assemble_insn (const struct arc_opcode *opcode,
{
case O_plt:
if (opcode->insn_class == JUMP)
- as_bad_where (frag_now->fr_file, frag_now->fr_line,
- _("Unable to use @plt relocation for insn %s"),
- opcode->name);
+ as_bad (_("Unable to use @plt relocation for insn %s"),
+ opcode->name);
needGOTSymbol = TRUE;
reloc = find_reloc ("plt", opcode->name,
pflags, nflg,
@@ -3962,9 +3963,8 @@ assemble_insn (const struct arc_opcode *opcode,
reloc = ARC_RELOC_TABLE (t->X_md)->reloc;
if (arc_opcode_len (opcode) == 2
|| opcode->insn_class == JUMP)
- as_bad_where (frag_now->fr_file, frag_now->fr_line,
- _("Unable to use @pcl relocation for insn %s"),
- opcode->name);
+ as_bad (_("Unable to use @pcl relocation for insn %s"),
+ opcode->name);
}
else
{
@@ -4130,8 +4130,9 @@ assemble_insn (const struct arc_opcode *opcode,
/* Check if the current instruction is legally used. */
if (arc_last_insns[1].has_delay_slot
&& is_br_jmp_insn_p (arc_last_insns[0].opcode))
- as_bad_where (frag_now->fr_file, frag_now->fr_line,
- _("A jump/branch instruction in delay slot."));
+ as_bad (_("Insn %s has a jump/branch instruction %s in its delay slot."),
+ arc_last_insns[1].opcode->name,
+ arc_last_insns[0].opcode->name);
}
void