From: Mike Frysinger Date: Wed, 18 Nov 2015 13:08:51 +0000 (+0000) Subject: Import fix from mainline to allow the building of GAS for the microblaze architecture... X-Git-Tag: users/ARM/embedded-binutils-2_26-branch-2016q1~113 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=477ae82884b117aa2f34d78beae01fd0ebc86b4b;p=thirdparty%2Fbinutils-gdb.git 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 --git a/gas/ChangeLog b/gas/ChangeLog index 32f56974461..51035d12354 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,10 @@ +2015-11-18 Nick Clifton + + Import from mainline: + 2015-11-16 Mike Frysinger + + * config/tc-microblaze.c (parse_imm): Add an offsetT cast. + 2015-11-13 Tristan Gingold * configure: Regenerate. diff --git a/gas/config/tc-microblaze.c b/gas/config/tc-microblaze.c index ac7c828ccec..0ec24f88217 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) {