2013-11-08 Jan-Benedict Glaw <jbglaw@lug-owl.de

* config/tc-ppc.c (ppc_elf_localentry): Add cast.

[BR]: https://sourceware.org/ml/binutils/2013-11/msg00064.html
This commit is contained in:
Jan-Benedict Glaw
2013-11-11 09:35:51 +01:00
parent 14b5f73fac
commit e2b5892e6e
2 changed files with 5 additions and 1 deletions

View 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> 2013-11-05 Yufeng Zhang <yufeng.zhang@arm.com>
* config/tc-aarch64.c (parse_sys_reg): Update to use aarch64_sys_reg; * config/tc-aarch64.c (parse_sys_reg): Update to use aarch64_sys_reg;

View File

@ -2269,7 +2269,7 @@ ppc_elf_localentry (int ignore ATTRIBUTE_UNUSED)
{ {
unsigned char encoded = PPC64_SET_LOCAL_ENTRY_OFFSET (exp.X_add_number); 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' " as_bad (_(".localentry expression for `%s' "
"is not a valid power of 2"), S_GET_NAME (sym)); "is not a valid power of 2"), S_GET_NAME (sym));
else else