summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan-Benedict Glaw <jbglaw@lug-owl.de>2013-11-11 09:35:51 +0100
committerAlan Modra <amodra@gmail.com>2013-11-15 16:30:19 +1030
commit50f9c79e1ecbae992f9de2fcb427cbb55828264e (patch)
tree8f9b6df6b9301151617f06dd0aaa20eafee137a8
parentac6f50a1e8f85daed1c13eedee914ea8d8bcbb84 (diff)
downloadppe42-binutils-50f9c79e1ecbae992f9de2fcb427cbb55828264e.tar.gz
ppe42-binutils-50f9c79e1ecbae992f9de2fcb427cbb55828264e.zip
ppc: signed/unsigned comparison
[BR]: https://sourceware.org/ml/binutils/2013-11/msg00064.html (cherry picked from commit e2b5892e6e75109898db1cfbda2975fa422ba762)
-rw-r--r--gas/ChangeLog3
-rw-r--r--gas/config/tc-ppc.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 34f99a5ce1..8ed6b0f97e 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -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.
diff --git a/gas/config/tc-ppc.c b/gas/config/tc-ppc.c
index 822f5a2c76..7c99e438ef 100644
--- a/gas/config/tc-ppc.c
+++ b/gas/config/tc-ppc.c
@@ -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
OpenPOWER on IntegriCloud