svn commit: r286690 - in stable: 10/contrib/binutils/gas/config 7/contrib/binutils/gas/config 8/contrib/binutils/gas/config 9/contrib/binutils/gas/config
Dimitry Andric
dim at FreeBSD.org
Wed Aug 12 19:18:57 UTC 2015
Author: dim
Date: Wed Aug 12 19:18:54 2015
New Revision: 286690
URL: https://svnweb.freebsd.org/changeset/base/286690
Log:
MFC r286519:
In GNU as, avoid left-shifting negative integers, which is undefined.
Modified:
stable/10/contrib/binutils/gas/config/tc-i386.c
Directory Properties:
stable/10/ (props changed)
Changes in other areas also in this revision:
Modified:
stable/7/contrib/binutils/gas/config/tc-i386.c
stable/8/contrib/binutils/gas/config/tc-i386.c
stable/9/contrib/binutils/gas/config/tc-i386.c
Directory Properties:
stable/7/ (props changed)
stable/7/contrib/binutils/ (props changed)
stable/8/ (props changed)
stable/8/contrib/ (props changed)
stable/8/contrib/binutils/ (props changed)
stable/9/ (props changed)
stable/9/contrib/ (props changed)
stable/9/contrib/binutils/ (props changed)
Modified: stable/10/contrib/binutils/gas/config/tc-i386.c
==============================================================================
--- stable/10/contrib/binutils/gas/config/tc-i386.c Wed Aug 12 19:10:29 2015 (r286689)
+++ stable/10/contrib/binutils/gas/config/tc-i386.c Wed Aug 12 19:18:54 2015 (r286690)
@@ -914,8 +914,8 @@ fits_in_signed_long (offsetT num ATTRIBU
#ifndef BFD64
return 1;
#else
- return (!(((offsetT) -1 << 31) & num)
- || (((offsetT) -1 << 31) & num) == ((offsetT) -1 << 31));
+ return (!(-((offsetT) 1 << 31) & num)
+ || (-((offsetT) 1 << 31) & num) == -((offsetT) 1 << 31));
#endif
} /* fits_in_signed_long() */
More information about the svn-src-all
mailing list