From: Paul Brook Date: Thu, 14 Sep 2006 15:28:35 +0000 (+0000) Subject: 2006-09-14 Paul Brook X-Git-Tag: binutils-csl-palmsource-arm-prelinker-1_0-1~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d86b547ff401ba457a397fd593d4e8ed9b73ef59;p=thirdparty%2Fbinutils-gdb.git 2006-09-14 Paul Brook * config/tc-arm.c (thumb32_negate_data_op): Consistently use unsigned int to avoid 64-bit host problems. --- diff --git a/ChangeLog.csl b/ChangeLog.csl index ff56f361bf1..58be2ebfb78 100644 --- a/ChangeLog.csl +++ b/ChangeLog.csl @@ -1,3 +1,8 @@ +2006-09-14 Paul Brook + + * config/tc-arm.c (thumb32_negate_data_op): Consistently use + unsigned int to avoid 64-bit host problems. + 2006-09-14 Julian Brown gas/ diff --git a/gas/config/tc-arm.c b/gas/config/tc-arm.c index 6feadfd08f7..f9affc9cccd 100644 --- a/gas/config/tc-arm.c +++ b/gas/config/tc-arm.c @@ -17215,11 +17215,11 @@ negate_data_op (unsigned long * instruction, /* Like negate_data_op, but for Thumb-2. */ static unsigned int -thumb32_negate_data_op (offsetT *instruction, offsetT value) +thumb32_negate_data_op (offsetT *instruction, unsigned int value) { int op, new_inst; int rd; - offsetT negated, inverted; + unsigned int negated, inverted; negated = encode_thumb32_immediate (-value); inverted = encode_thumb32_immediate (~value); @@ -17280,7 +17280,7 @@ thumb32_negate_data_op (offsetT *instruction, offsetT value) return FAIL; } - if (value == FAIL) + if (value == (unsigned int)FAIL) return FAIL; *instruction &= T2_OPCODE_MASK;