[binutils-gdb] oops - actually remove the assignment this time: bfd/elf32-nds32.c:9693]: (warning) Redundant assign

Nick Clifton nickc@sourceware.org
Mon Feb 12 11:55:00 GMT 2018


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=6444b19b244d7c84537fc796005ef756917135ae

commit 6444b19b244d7c84537fc796005ef756917135ae
Author: Nick Clifton <nickc@redhat.com>
Date:   Mon Feb 12 11:54:48 2018 +0000

    oops - actually remove the assignment this time: bfd/elf32-nds32.c:9693]: (warning) Redundant assignment of 'irel->r_addend' to itself.

Diff:
---
 bfd/elf32-nds32.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/bfd/elf32-nds32.c b/bfd/elf32-nds32.c
index 5ceb0a0..541ec5d 100644
--- a/bfd/elf32-nds32.c
+++ b/bfd/elf32-nds32.c
@@ -9690,7 +9690,6 @@ nds32_elf_relax_longjump3 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel,
     else
       {
 	irel->r_info = ELF32_R_INFO (ELF32_R_SYM (irel->r_info), reloc);
-	irel->r_addend = irel->r_addend;
 	hi_irelfn->r_info = ELF32_R_INFO (ELF32_R_SYM (hi_irelfn->r_info),
 					  cond_reloc);
       }



More information about the Binutils-cvs mailing list