From: Jan-Benedict Glaw Date: Mon, 11 Nov 2013 08:35:51 +0000 (+0100) Subject: ppc: signed/unsigned comparison X-Git-Tag: binutils-2_24~39 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=50f9c79e1ecbae992f9de2fcb427cbb55828264e;p=thirdparty%2Fbinutils-gdb.git ppc: signed/unsigned comparison [BR]: https://sourceware.org/ml/binutils/2013-11/msg00064.html (cherry picked from commit e2b5892e6e75109898db1cfbda2975fa422ba762) --- diff --git a/gas/ChangeLog b/gas/ChangeLog index 34f99a5ce16..8ed6b0f97e9 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,6 +1,9 @@ 2013-11-15 Alan Modra Apply changes from mainline to 2.24 + 2013-11-08 Jan-Benedict Glaw * 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 822f5a2c764..7c99e438ef8 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