2013-11-08 Jan-Benedict Glaw <jbglaw@lug-owl.de
authorJan-Benedict Glaw <jbglaw@lug-owl.de>
Mon, 11 Nov 2013 08:35:51 +0000 (09:35 +0100)
committerJan-Benedict Glaw <jbglaw@lug-owl.de>
Mon, 11 Nov 2013 08:35:51 +0000 (09:35 +0100)
* config/tc-ppc.c (ppc_elf_localentry): Add cast.

[BR]: https://sourceware.org/ml/binutils/2013-11/msg00064.html

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

index 60c355c..50d61f8 100644 (file)
@@ -1,3 +1,7 @@
+2013-11-08  Jan-Benedict Glaw  <jbglaw@lug-owl.de
+
+       * config/tc-ppc.c (ppc_elf_localentry): Add cast.
+
 2013-11-05  Yufeng Zhang  <yufeng.zhang@arm.com>
 
        * config/tc-aarch64.c (parse_sys_reg): Update to use aarch64_sys_reg;
index 822f5a2..7c99e43 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