Skip to contentSkip to conversation

MIPS gas bug & fix

PATCH Ralf Baechle 1 participant 1 message Aug 2, 1999 MIPS

lore
Share & tools
lore
#0 lore raw

Hi,

the cvs version of gas has a tiny typo which prevents it from swapping an instruction preceeding a jump or branch in most cases. The fix is trivial and appended below.

Ralf

tc-mips.c renamed from tc-mips.c.orig +1 -1
@@ -2099,7 +2099,7 @@
 	      || (mips_opts.mips16 && prev_insn_fixp)
 	      /* If the previous instruction is a sync, sync.l, or 
 		 sync.p, we can not swap. */
-	      || (prev_pinfo && INSN_SYNC))
+	      || (prev_pinfo & INSN_SYNC))
 	    {
 	      /* We could do even better for unconditional branches to
 		 portions of this object file; we could pick up the