public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* MIPS gas bug & fix
@ 1999-08-02 14:50 Ralf Baechle
  0 siblings, 0 replies; only message in thread
From: Ralf Baechle @ 1999-08-02 14:50 UTC (permalink / raw)
  To: binutils; +Cc: linux, linux-mips, linux-mips

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.orig	Mon Aug  2 10:47:15 1999
+++ tc-mips.c	Mon Aug  2 10:47:04 1999
@@ -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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1999-08-02 14:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-08-02 14:50 MIPS gas bug & fix Ralf Baechle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).