]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
RISC-V: Fix build failures for -Werror=sign-compare.
authorNelson Chu <nelson@rivosinc.com>
Thu, 27 Oct 2022 01:39:13 +0000 (09:39 +0800)
committerNelson Chu <nelson@rivosinc.com>
Thu, 27 Oct 2022 08:45:43 +0000 (16:45 +0800)
commitf52fb009085e63da25eeacd39990ac6243ffed76
tree9567e03c1468be0225b24ba0de92c8490156e410
parentffbe89531c2e9bfd81a16241e1d17fff134fab9e
RISC-V: Fix build failures for -Werror=sign-compare.

elfnn-riscv.c: In function ‘riscv_relax_resolve_delete_relocs’:
elfnn-riscv.c:4256:30: error: operand of ‘?:’ changes signedness from ‘int’ to ‘unsigned int’ due to unsignedness of other operand [-Werror=sign-compare]

So make the operands unsigned could resolve problem.

bfd/
    * elfnn-riscv.c (riscv_relax_resolve_delete_relocs): Fixed build
    failures for -Werror=sign-compare.
bfd/elfnn-riscv.c