From bdab1e70249bef563199f6bb6308e3fdf240ae32 Mon Sep 17 00:00:00 2001 From: Ed Maste Date: Fri, 18 Aug 2017 21:20:38 +0000 Subject: [PATCH] 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 --- contrib/binutils/gas/config/tc-mips.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/binutils/gas/config/tc-mips.c b/contrib/binutils/gas/config/tc-mips.c index f4d99ff2ca9..df45056a85f 100644 --- a/contrib/binutils/gas/config/tc-mips.c +++ b/contrib/binutils/gas/config/tc-mips.c @@ -2920,7 +2920,7 @@ append_insn (struct mips_cl_insn *ip, expressionS *address_expr, 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 {