]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
ppc: signed/unsigned comparison
authorJan-Benedict Glaw <jbglaw@lug-owl.de>
Mon, 11 Nov 2013 08:35:51 +0000 (09:35 +0100)
committerAlan Modra <amodra@gmail.com>
Fri, 15 Nov 2013 06:00:19 +0000 (16:30 +1030)
[BR]: https://sourceware.org/ml/binutils/2013-11/msg00064.html
(cherry picked from commit e2b5892e6e75109898db1cfbda2975fa422ba762)

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

index 34f99a5ce1619fb07d1efc641a0761ff60846733..8ed6b0f97e9ec15a6bbcdca13de8fbfe2062e2dc 100644 (file)
@@ -1,6 +1,9 @@
 2013-11-15  Alan Modra  <amodra@gmail.com>
 
        Apply changes from mainline to 2.24
+       2013-11-08  Jan-Benedict Glaw  <jbglaw@lug-owl.de
+       * config/tc-ppc.c (ppc_elf_localentry): Add cast.
+
        2013-10-30  Ulrich Weigand  <uweigand@de.ibm.com>
        * config/tc-ppc.c (md_pseudo_table): Add .localentry.
        (ppc_elf_localentry): New function.
index 822f5a2c764ff09d79c9ac4014dfa2cd68195684..7c99e438ef83bbf75f14f980d1f080bc0a3876d4 100644 (file)
@@ -2269,7 +2269,7 @@ ppc_elf_localentry (int ignore ATTRIBUTE_UNUSED)
     {
       unsigned char encoded = PPC64_SET_LOCAL_ENTRY_OFFSET (exp.X_add_number);
 
-      if (exp.X_add_number != PPC64_LOCAL_ENTRY_OFFSET (encoded))
+      if (exp.X_add_number != (offsetT) PPC64_LOCAL_ENTRY_OFFSET (encoded))
         as_bad (_(".localentry expression for `%s' "
                  "is not a valid power of 2"), S_GET_NAME (sym));
       else