Fix compile time warning about comparison between signed and unsigned values.
authorNick Clifton <nickc@redhat.com>
Wed, 30 Mar 2016 15:18:04 +0000 (16:18 +0100)
committerNick Clifton <nickc@redhat.com>
Wed, 30 Mar 2016 15:18:04 +0000 (16:18 +0100)
PR target/19880
* config/tc-arm.c (do_t_push_pop): Cast bitmask to unsigned before
shifting.

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

index 4fecbe5117884bfdd3a00e74d09c191e0285a5b5..1b48ea4bd021bd090997ea934122ac0fd609b18d 100644 (file)
@@ -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>
 
         * testsuite/gas/all/gas.exp: Don't xfail on ARC.
index bec091c15d4b0e8694bfaaf0e8135c02d3c3a86e..9c2eef5901a01b54011336dfae7c520a11af1c4c 100644 (file)
@@ -12516,7 +12516,7 @@ do_t_push_pop (void)
   if (inst.size_req != 4 && (mask & ~0xff) == 0)
     inst.instruction = THUMB_OP16 (inst.instruction) | mask;
   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)))
     {
       inst.instruction = THUMB_OP16 (inst.instruction);