aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2004-12-09 15:51:32 +0000
committerIan Lance Taylor <ian@airs.com>2004-12-09 15:51:32 +0000
commitdd22970fb50af848c0cf85cd164108b80ef88656 (patch)
treeed530ce974e49d39551a44b21dece60f1d7a7c81 /gas
parent42581a2496e1023740a2bc827b15f8149a7961bd (diff)
downloadgdb-dd22970fb50af848c0cf85cd164108b80ef88656.zip
gdb-dd22970fb50af848c0cf85cd164108b80ef88656.tar.gz
gdb-dd22970fb50af848c0cf85cd164108b80ef88656.tar.bz2
* config/tc-mips.c (append_insn): If we emit a nop during a relax
sequence, increase the size of the sequence.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog3
-rw-r--r--gas/config/tc-mips.c2
2 files changed, 5 insertions, 0 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 43c36ad..27e3cce 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,5 +1,8 @@
2004-12-09 Ian Lance Taylor <ian@wasabisystems.com>
+ * config/tc-mips.c (append_insn): If we emit a nop during a relax
+ sequence, increase the size of the sequence.
+
* config/tc-mips.c (mips_cpu_info_table): Change "9000" entry to
use CPU_RM9000.
diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c
index b8b23f1..d03154a 100644
--- a/gas/config/tc-mips.c
+++ b/gas/config/tc-mips.c
@@ -2542,6 +2542,8 @@ append_insn (struct mips_cl_insn *ip, expressionS *address_expr,
instruction at the destination, put it in the delay
slot, and bump the destination address. */
emit_nop ();
+ if (mips_relax.sequence)
+ mips_relax.sizes[mips_relax.sequence - 1] += 4;
/* Update the previous insn information. */
prev_prev_insn = *ip;
prev_insn.insn_mo = &dummy_opcode;