aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorPaul Brook <paul@codesourcery.com>2006-09-16 00:55:33 +0000
committerPaul Brook <paul@codesourcery.com>2006-09-16 00:55:33 +0000
commit16dd5e4216c03faafc790df4736dba54638cc56e (patch)
tree44565dd52520fe8e6b86f50e674cc48dcd6ecace /gas/config
parentf8576127ef2965eed594504822991bd582745d56 (diff)
downloadgdb-16dd5e4216c03faafc790df4736dba54638cc56e.zip
gdb-16dd5e4216c03faafc790df4736dba54638cc56e.tar.gz
gdb-16dd5e4216c03faafc790df4736dba54638cc56e.tar.bz2
2006-09-16 Paul Brook <paul@codesourcery.com>
* config/tc-arm.c (thumb32_negate_data_op): Consistently use unsigned int to avoid 64-bit host problems.
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/tc-arm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gas/config/tc-arm.c b/gas/config/tc-arm.c
index 19244d7..e8fe7cf 100644
--- a/gas/config/tc-arm.c
+++ b/gas/config/tc-arm.c
@@ -17236,11 +17236,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);
@@ -17301,7 +17301,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;