diff options
author | dim <dim@FreeBSD.org> | 2015-08-09 11:06:40 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2015-08-09 11:06:40 +0000 |
commit | cab733fc814b9944c96adae20de63db13f84b4d7 (patch) | |
tree | e3bef2e2805d2b076e32bb80362f8ad679b9351f /contrib/binutils | |
parent | bb7878262b275a0f31733586ba98bd92a2478b2d (diff) | |
download | FreeBSD-src-cab733fc814b9944c96adae20de63db13f84b4d7.zip FreeBSD-src-cab733fc814b9944c96adae20de63db13f84b4d7.tar.gz |
In GNU as, avoid left-shifting negative integers, which is undefined.
MFC after: 3 days
Diffstat (limited to 'contrib/binutils')
-rw-r--r-- | contrib/binutils/gas/config/tc-i386.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/binutils/gas/config/tc-i386.c b/contrib/binutils/gas/config/tc-i386.c index 5c8e6b1..2029c87 100644 --- a/contrib/binutils/gas/config/tc-i386.c +++ b/contrib/binutils/gas/config/tc-i386.c @@ -914,8 +914,8 @@ fits_in_signed_long (offsetT num ATTRIBUTE_UNUSED) #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() */ |