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.
This commit is contained in:
Paul Brook 2006-09-16 00:55:33 +00:00
parent f8576127ef
commit 16dd5e4216
2 changed files with 8 additions and 3 deletions

View 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> 2006-09-15 Bernd Schmidt <bernd.schmidt@analog.com>
* config/bfin-parse.y (binary): Do some more constant folding for * config/bfin-parse.y (binary): Do some more constant folding for

View file

@ -17236,11 +17236,11 @@ negate_data_op (unsigned long * instruction,
/* Like negate_data_op, but for Thumb-2. */ /* Like negate_data_op, but for Thumb-2. */
static unsigned int 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 op, new_inst;
int rd; int rd;
offsetT negated, inverted; unsigned int negated, inverted;
negated = encode_thumb32_immediate (-value); negated = encode_thumb32_immediate (-value);
inverted = encode_thumb32_immediate (~value); inverted = encode_thumb32_immediate (~value);
@ -17301,7 +17301,7 @@ thumb32_negate_data_op (offsetT *instruction, offsetT value)
return FAIL; return FAIL;
} }
if (value == FAIL) if (value == (unsigned int)FAIL)
return FAIL; return FAIL;
*instruction &= T2_OPCODE_MASK; *instruction &= T2_OPCODE_MASK;