mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-26 13:56:22 +08:00
Fix compile time warning about comparison between signed and unsigned values.
PR target/19880 * config/tc-arm.c (do_t_push_pop): Cast bitmask to unsigned before shifting.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
2016-03-30 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
|
PR target/19880
|
||||||
|
* config/tc-arm.c (do_t_push_pop): Cast bitmask to unsigned before
|
||||||
|
shifting.
|
||||||
|
|
||||||
2016-03-30 Claudiu Zissulescu <claziss@synopsys.com>
|
2016-03-30 Claudiu Zissulescu <claziss@synopsys.com>
|
||||||
|
|
||||||
* testsuite/gas/all/gas.exp: Don't xfail on ARC.
|
* testsuite/gas/all/gas.exp: Don't xfail on ARC.
|
||||||
|
@ -12516,7 +12516,7 @@ do_t_push_pop (void)
|
|||||||
if (inst.size_req != 4 && (mask & ~0xff) == 0)
|
if (inst.size_req != 4 && (mask & ~0xff) == 0)
|
||||||
inst.instruction = THUMB_OP16 (inst.instruction) | mask;
|
inst.instruction = THUMB_OP16 (inst.instruction) | mask;
|
||||||
else if (inst.size_req != 4
|
else if (inst.size_req != 4
|
||||||
&& (mask & ~0xff) == (1 << (inst.instruction == T_MNEM_push
|
&& (mask & ~0xff) == (1U << (inst.instruction == T_MNEM_push
|
||||||
? REG_LR : REG_PC)))
|
? REG_LR : REG_PC)))
|
||||||
{
|
{
|
||||||
inst.instruction = THUMB_OP16 (inst.instruction);
|
inst.instruction = THUMB_OP16 (inst.instruction);
|
||||||
|
Reference in New Issue
Block a user