From 50f9c79e1ecbae992f9de2fcb427cbb55828264e Mon Sep 17 00:00:00 2001 From: Jan-Benedict Glaw Date: Mon, 11 Nov 2013 09:35:51 +0100 Subject: [PATCH] ppc: signed/unsigned comparison [BR]: https://sourceware.org/ml/binutils/2013-11/msg00064.html (cherry picked from commit e2b5892e6e75109898db1cfbda2975fa422ba762) --- gas/ChangeLog | 3 +++ gas/config/tc-ppc.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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 -- 2.47.3