This is the mail archive of the binutils-cvs@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb/binutils-2_26-branch] Import fix from mainline to allow the building of GAS for the microblaze architecture on a 64-bit ho


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=477ae82884b117aa2f34d78beae01fd0ebc86b4b

commit 477ae82884b117aa2f34d78beae01fd0ebc86b4b
Author: Mike Frysinger <vapier@gentoo.org>
Date:   Wed Nov 18 13:08:51 2015 +0000

    Import fix from mainline to allow the building of GAS for the microblaze architecture on a 64-bit host.
    
    	* config/tc-microblaze.c (parse_imm): Add an offsetT cast.

Diff:
---
 gas/ChangeLog              | 7 +++++++
 gas/config/tc-microblaze.c | 2 +-
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/gas/ChangeLog b/gas/ChangeLog
index 32f5697..51035d1 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,10 @@
+2015-11-18  Nick Clifton  <nickc@redhat.com>
+
+	Import from mainline:
+	2015-11-16  Mike Frysinger  <vapier@gentoo.org>
+
+	* config/tc-microblaze.c (parse_imm): Add an offsetT cast.
+
 2015-11-13  Tristan Gingold  <gingold@adacore.com>
 
 	* configure: Regenerate.
diff --git a/gas/config/tc-microblaze.c b/gas/config/tc-microblaze.c
index ac7c828..0ec24f8 100644
--- a/gas/config/tc-microblaze.c
+++ b/gas/config/tc-microblaze.c
@@ -739,7 +739,7 @@ parse_imm (char * s, expressionS * e, offsetT min, offsetT max)
     {
       /* Special case: sign extend negative 32-bit values to 64-bits.  */
       if ((e->X_add_number >> 31) == 1)
-	e->X_add_number |= -(1 << 31);
+	e->X_add_number |= -((offsetT) 1 << 31);
 
       if (e->X_add_number < min || e->X_add_number > max)
 	{


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]