linux-mips-fnet
[Top] [All Lists]

MIPS gas bug & fix

To: binutils@sourceware.cygnus.com
Subject: MIPS gas bug & fix
From: Ralf Baechle <ralf@uni-koblenz.de>
Date: Mon, 2 Aug 1999 19:59:31 +0200
Cc: linux@engr.sgi.com, linux-mips@fnet.fr, linux-mips@vger.rutgers.edu
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

<Prev in Thread] Current Thread [Next in Thread>
  • MIPS gas bug & fix, Ralf Baechle <=