* config/tc-mips.c (append_insn): Remove bogus goto.
This commit is contained in:
Richard Sandiford 2011-06-29 20:48:10 +00:00
parent 906efcbc31
commit 9fe77896a7
2 changed files with 102 additions and 102 deletions

View File

@ -1,3 +1,7 @@
2011-06-29 Richard Sandiford <rdsandiford@googlemail.com>
* config/tc-mips.c (append_insn): Remove bogus goto.
2011-06-29 Richard Sandiford <rdsandiford@googlemail.com>
* config/tc-mips.c (append_insn): Always clear the history after an

View File

@ -3180,12 +3180,13 @@ append_insn (struct mips_cl_insn *ip, expressionS *address_expr,
if ((address_expr->X_add_number & 3) != 0)
as_bad (_("branch to misaligned address (0x%lx)"),
(unsigned long) address_expr->X_add_number);
if (mips_relax_branch)
goto need_reloc;
if (!mips_relax_branch)
{
if ((address_expr->X_add_number + 0x20000) & ~0x3ffff)
as_bad (_("branch address range overflow (0x%lx)"),
(unsigned long) address_expr->X_add_number);
ip->insn_opcode |= (address_expr->X_add_number >> 2) & 0xffff;
}
ip->complete_p = 0;
break;
@ -3367,11 +3368,7 @@ append_insn (struct mips_cl_insn *ip, expressionS *address_expr,
add_fixed_insn (ip);
}
if (address_expr != NULL && *reloc_type <= BFD_RELOC_UNUSED)
{
if (!ip->complete_p
&& *reloc_type < BFD_RELOC_UNUSED)
need_reloc:
if (!ip->complete_p && *reloc_type < BFD_RELOC_UNUSED)
{
reloc_howto_type *howto;
int i;
@ -3466,7 +3463,6 @@ append_insn (struct mips_cl_insn *ip, expressionS *address_expr,
ip->fixp[i]->fx_tcbit = 1;
}
}
}
install_insn (ip);
/* Update the register mask information. */