svn commit: r289078 - in stable: 10/contrib/binutils/opcodes 9/contrib/binutils/opcodes

Dimitry Andric dim at FreeBSD.org
Fri Oct 9 19:36:08 UTC 2015


Author: dim
Date: Fri Oct  9 19:36:06 2015
New Revision: 289078
URL: https://svnweb.freebsd.org/changeset/base/289078

Log:
  MFC r288099:
  
  In binutils' arm-dis.c, avoid left-shifting a negative number.
  
  Submitted by:	dan.mcgregor_usask.ca (Dan McGregor)
  Differential Revision: https://reviews.freebsd.org/D3376

Modified:
  stable/10/contrib/binutils/opcodes/arm-dis.c
Directory Properties:
  stable/10/   (props changed)

Changes in other areas also in this revision:
Modified:
  stable/9/contrib/binutils/opcodes/arm-dis.c
Directory Properties:
  stable/9/   (props changed)
  stable/9/contrib/   (props changed)
  stable/9/contrib/binutils/   (props changed)

Modified: stable/10/contrib/binutils/opcodes/arm-dis.c
==============================================================================
--- stable/10/contrib/binutils/opcodes/arm-dis.c	Fri Oct  9 19:18:02 2015	(r289077)
+++ stable/10/contrib/binutils/opcodes/arm-dis.c	Fri Oct  9 19:36:06 2015	(r289078)
@@ -1767,7 +1767,7 @@ print_insn_coprocessor (bfd_vma pc, stru
 
 			/* Is ``imm'' a negative number?  */
 			if (imm & 0x40)
-			  imm |= (-1 << 7);
+			  imm |= -(1 << 7);
 
 			func (stream, "%d", imm);
 		      }


More information about the svn-src-stable-10 mailing list