aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2016-03-30 16:18:04 +0100
committerNick Clifton <nickc@redhat.com>2016-03-30 16:18:04 +0100
commitc6025a80cc284ae2781278de6f44c672d5077797 (patch)
tree3ec1f6b8a758c9dd4a4730aed93263c49156e059 /gas/config
parent72fb548884ae3b1849c951aa741af74115c8e807 (diff)
downloadgdb-c6025a80cc284ae2781278de6f44c672d5077797.zip
gdb-c6025a80cc284ae2781278de6f44c672d5077797.tar.gz
gdb-c6025a80cc284ae2781278de6f44c672d5077797.tar.bz2
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.
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/tc-arm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gas/config/tc-arm.c b/gas/config/tc-arm.c
index bec091c..9c2eef5 100644
--- a/gas/config/tc-arm.c
+++ b/gas/config/tc-arm.c
@@ -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);