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
     {
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to