From: DJ Delorie Date: Wed, 2 Nov 2011 20:40:22 +0000 (+0000) Subject: [bfd] X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6652d298c01d1747ad2120f5815905364f3b62f9;p=binutils-gdb.git [bfd] * elf32-rl78.c (rl78_elf_merge_private_bfd_data): Delete unused variable. [gas] * config/tc-rl78.c (tc_gen_reloc): Remove unused variable. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index d4b33c5b5e0..ebf5b0f4bdf 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2011-11-02 DJ Delorie + + * elf32-rl78.c (rl78_elf_merge_private_bfd_data): Delete unused + variable. + 2011-11-02 Jan Beulich * coffgen.c (coff_write_alien_symbol): Make public. Add 'struct diff --git a/bfd/elf32-rl78.c b/bfd/elf32-rl78.c index c969c71e7c5..92c01b075d2 100644 --- a/bfd/elf32-rl78.c +++ b/bfd/elf32-rl78.c @@ -1013,12 +1013,10 @@ bfd_elf32_rl78_set_target_flags (bfd_boolean user_no_warn_mismatch) static bfd_boolean rl78_elf_merge_private_bfd_data (bfd * ibfd, bfd * obfd) { - flagword old_flags; flagword new_flags; bfd_boolean error = FALSE; new_flags = elf_elfheader (ibfd)->e_flags; - old_flags = elf_elfheader (obfd)->e_flags; if (!elf_flags_init (obfd)) { diff --git a/gas/ChangeLog b/gas/ChangeLog index 4778540f52e..8f6bc7c63d1 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,7 @@ +2011-11-02 DJ Delorie + + * config/tc-rl78.c (tc_gen_reloc): Remove unused variable. + 2011-11-02 Nick Clifton * config/tc-arm.c (md_begin): Remove ARM_PLT32 reloc associated diff --git a/gas/config/tc-rl78.c b/gas/config/tc-rl78.c index 07a4cc808ad..fe0f97724f5 100644 --- a/gas/config/tc-rl78.c +++ b/gas/config/tc-rl78.c @@ -482,7 +482,6 @@ tc_gen_reloc (asection * seg ATTRIBUTE_UNUSED, fixS * fixp) { static arelent * reloc[8]; int rp; - int is_opcode = 0; if (fixp->fx_r_type == BFD_RELOC_NONE) { @@ -507,7 +506,6 @@ tc_gen_reloc (asection * seg ATTRIBUTE_UNUSED, fixS * fixp) && fixp->fx_subsy) { fixp->fx_r_type = BFD_RELOC_RL78_DIFF; - is_opcode = 1; } #define OPX(REL,SYM,ADD) \