2006-09-16 Paul Brook <paul@codesourcery.com>
authorPaul Brook <paul@codesourcery.com>
Sat, 16 Sep 2006 00:55:33 +0000 (00:55 +0000)
committerPaul Brook <paul@codesourcery.com>
Sat, 16 Sep 2006 00:55:33 +0000 (00:55 +0000)
* config/tc-arm.c (thumb32_negate_data_op): Consistently use
unsigned int to avoid 64-bit host problems.

gas/ChangeLog
gas/config/tc-arm.c

index c589c091d7421c70242deac1fc703d8a4de13e49..56bdc8ac1caae99dd4a77a2814623c4c7e405b33 100644 (file)
@@ -1,3 +1,8 @@
+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.
+
 2006-09-15  Bernd Schmidt  <bernd.schmidt@analog.com>
 
        * config/bfin-parse.y (binary): Do some more constant folding for
index 19244d7d5c24f001e8cd9447b48c010d9f1df306..e8fe7cfb91691813d481666fe7ac3e010644b16b 100644 (file)
@@ -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;