diff options
author | Paul Brook <paul@codesourcery.com> | 2006-09-14 15:28:35 +0000 |
---|---|---|
committer | Paul Brook <paul@codesourcery.com> | 2006-09-14 15:28:35 +0000 |
commit | 0b50fa6562eecdf2d64326407cb609e0567ff448 (patch) | |
tree | 5abb547fe8697a96c4e09a8e85e37ca50a5d5c94 | |
parent | 1cd1fb838f5f1678b47666e77237b3bf0c886555 (diff) | |
download | binutils-redhat-0b50fa6562eecdf2d64326407cb609e0567ff448.tar.gz |
2006-09-14 Paul Brook <paul@codesourcery.com>
* config/tc-arm.c (thumb32_negate_data_op): Consistently use
unsigned int to avoid 64-bit host problems.
-rw-r--r-- | ChangeLog.csl | 5 | ||||
-rw-r--r-- | gas/config/tc-arm.c | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/ChangeLog.csl b/ChangeLog.csl index ff56f361bf..58be2ebfb7 100644 --- a/ChangeLog.csl +++ b/ChangeLog.csl @@ -1,3 +1,8 @@ +2006-09-14 Paul Brook <paul@codesourcery.com> + + * config/tc-arm.c (thumb32_negate_data_op): Consistently use + unsigned int to avoid 64-bit host problems. + 2006-09-14 Julian Brown <julian@codesourcery.com> gas/ diff --git a/gas/config/tc-arm.c b/gas/config/tc-arm.c index 6feadfd08f..f9affc9ccc 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; |