Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Aug 2017 21:20:38 +0000 (UTC)
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r322675 - head/contrib/binutils/gas/config
Message-ID:  <201708182120.v7ILKcIw037210@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: emaste
Date: Fri Aug 18 21:20:38 2017
New Revision: 322675
URL: https://svnweb.freebsd.org/changeset/base/322675

Log:
  gas: add parens to clarify expression and eliminate clang warning
  
  Building mips64 w/ Clang failed with -Werror,-Wshift-negative-value
  error: shifting a negative signed value is undefined

Modified:
  head/contrib/binutils/gas/config/tc-mips.c

Modified: head/contrib/binutils/gas/config/tc-mips.c
==============================================================================
--- head/contrib/binutils/gas/config/tc-mips.c	Fri Aug 18 20:35:35 2017	(r322674)
+++ head/contrib/binutils/gas/config/tc-mips.c	Fri Aug 18 21:20:38 2017	(r322675)
@@ -2920,7 +2920,7 @@ append_insn (struct mips_cl_insn *ip, expressionS *add
 	     instruction.  May want to add this support in the future.  */
 	}
       /* Never set the bit for $0, which is always zero.  */
-      mips_gprmask &= ~1 << 0;
+      mips_gprmask &= ~(1 << 0);
     }
   else
     {



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