aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1997-02-13 01:29:39 +0000
committerIan Lance Taylor <ian@airs.com>1997-02-13 01:29:39 +0000
commit9cd4e6cc51bb637ec8e6aa1ca1d44c3520cc01d5 (patch)
tree7f1cd72b4d2604ff60f4b3a21d79926c581be126 /gas
parent8662603f08c41fb7134b814794c1f0d607a88ec7 (diff)
downloadgdb-9cd4e6cc51bb637ec8e6aa1ca1d44c3520cc01d5.zip
gdb-9cd4e6cc51bb637ec8e6aa1ca1d44c3520cc01d5.tar.gz
gdb-9cd4e6cc51bb637ec8e6aa1ca1d44c3520cc01d5.tar.bz2
* config/tc-mips.c (append_insn): Remove useless code which
handled swapping a mips16 jump with a mips16 instruction with a reloc.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog4
-rw-r--r--gas/config/tc-mips.c24
2 files changed, 8 insertions, 20 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 679bacd..5e0c673 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,5 +1,9 @@
Wed Feb 12 14:36:29 1997 Ian Lance Taylor <ian@cygnus.com>
+ * config/tc-mips.c (append_insn): Remove useless code which
+ handled swapping a mips16 jump with a mips16 instruction with a
+ reloc.
+
* config/tc-mips.c (md_parse_option): When debugging, set
mips_optimize to 1, not 0.
diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c
index 2453714..098144e 100644
--- a/gas/config/tc-mips.c
+++ b/gas/config/tc-mips.c
@@ -1880,25 +1880,6 @@ append_insn (place, ip, address_expr, reloc_type, unmatched_hi)
fixp->fx_where = prev_insn_where;
}
}
- else if (reloc_type > BFD_RELOC_UNUSED)
- {
- char *prev_f;
- char temp[2];
-
- /* We are in mips16 mode, and we have just created a
- variant frag. We need to extract the old
- instruction from the end of the previous frag,
- and add it to a new frag. */
- prev_f = prev_insn_frag->fr_literal + prev_insn_where;
- memcpy (temp, prev_f, 2);
- prev_insn_frag->fr_fix -= 2;
- if (prev_insn_frag->fr_type == rs_machine_dependent)
- {
- assert (prev_insn_where == prev_insn_frag->fr_fix);
- memcpy (prev_f, prev_f + 2, 2);
- }
- memcpy (frag_more (2), temp, 2);
- }
else
{
char *prev_f;
@@ -1909,7 +1890,10 @@ append_insn (place, ip, address_expr, reloc_type, unmatched_hi)
memcpy (temp, prev_f, 2);
memcpy (prev_f, f, 2);
if (reloc_type != BFD_RELOC_MIPS16_JMP)
- memcpy (f, temp, 2);
+ {
+ assert (reloc_type == BFD_RELOC_UNUSED);
+ memcpy (f, temp, 2);
+ }
else
{
memcpy (f, f + 2, 2);