From d9e083b56973eb9b95ab48bfc2a1317465716d86 Mon Sep 17 00:00:00 2001 From: dim Date: Wed, 12 Aug 2015 19:18:54 +0000 Subject: [PATCH] MFC r286519: In GNU as, avoid left-shifting negative integers, which is undefined. git-svn-id: svn://svn.freebsd.org/base/stable/8@286690 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- contrib/binutils/gas/config/tc-i386.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/binutils/gas/config/tc-i386.c b/contrib/binutils/gas/config/tc-i386.c index 5e6ebf0ea..096b347a4 100644 --- a/contrib/binutils/gas/config/tc-i386.c +++ b/contrib/binutils/gas/config/tc-i386.c @@ -610,8 +610,8 @@ fits_in_signed_long (num) #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() */ static INLINE int -- 2.42.0