svn commit: r322675 - head/contrib/binutils/gas/config
Ed Maste
emaste at FreeBSD.org
Fri Aug 18 21:20:39 UTC 2017
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
{
More information about the svn-src-all
mailing list