Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Oct 2015 19:36:07 +0000 (UTC)
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r289078 - in stable: 10/contrib/binutils/opcodes 9/contrib/binutils/opcodes
Message-ID:  <201510091936.t99Ja7k9079467@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 		      }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201510091936.t99Ja7k9079467>