* config/tc-mips.c (append_insn): If we emit a nop during a relax
authorIan Lance Taylor <ian@airs.com>
Thu, 9 Dec 2004 15:51:32 +0000 (15:51 +0000)
committerIan Lance Taylor <ian@airs.com>
Thu, 9 Dec 2004 15:51:32 +0000 (15:51 +0000)
sequence, increase the size of the sequence.

gas/ChangeLog
gas/config/tc-mips.c

index 43c36ad86739c6d3a9cb1001f01ea976d4e0610a..27e3cce89eaa5410a19c44037ac4b669d7811654 100644 (file)
@@ -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.
 
index b8b23f1e095e6ac7b92b1903b42556282d2d0fe6..d03154a00d13df0ccd9f6cf1c468f714e566d42b 100644 (file)
@@ -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;