This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Commit: Tile{pro/gx}: Delete unused local variables


Hi Guys,

  I am checking in the patch below to fix a few compile time warnings
  building the new tilepro/tilegx sources on a host that uses gcc 4.6.0.

Cheers
  Nick

bfd/ChangeLog
2011-06-13  Nick Clifton  <nickc@redhat.com>

	* elf32-tilepro.c (tilepro_elf_check_relocs): Delete unused local
	variable 'local_got_offsets'.
	* elfxx-tilegx.c (tilegx_elf_check_relocs): Likewise.
	(tilegx_finish_dyn): Delete unused local variable 'abi_64_p'.

Index: bfd/elf32-tilepro.c
===================================================================
RCS file: /cvs/src/src/bfd/elf32-tilepro.c,v
retrieving revision 1.1
diff -c -3 -p -r1.1 elf32-tilepro.c
*** bfd/elf32-tilepro.c	13 Jun 2011 15:18:46 -0000	1.1
--- bfd/elf32-tilepro.c	13 Jun 2011 15:54:10 -0000
*************** tilepro_elf_check_relocs (bfd *abfd, str
*** 1299,1305 ****
    struct tilepro_elf_link_hash_table *htab;
    Elf_Internal_Shdr *symtab_hdr;
    struct elf_link_hash_entry **sym_hashes;
-   bfd_vma *local_got_offsets;
    const Elf_Internal_Rela *rel;
    const Elf_Internal_Rela *rel_end;
    asection *sreloc;
--- 1299,1304 ----
*************** tilepro_elf_check_relocs (bfd *abfd, str
*** 1311,1317 ****
    htab = tilepro_elf_hash_table (info);
    symtab_hdr = &elf_tdata (abfd)->symtab_hdr;
    sym_hashes = elf_sym_hashes (abfd);
-   local_got_offsets = elf_local_got_offsets (abfd);
  
    sreloc = NULL;
  
--- 1310,1315 ----
Index: bfd/elfxx-tilegx.c
===================================================================
RCS file: /cvs/src/src/bfd/elfxx-tilegx.c,v
retrieving revision 1.1
diff -c -3 -p -r1.1 elfxx-tilegx.c
*** bfd/elfxx-tilegx.c	13 Jun 2011 15:18:46 -0000	1.1
--- bfd/elfxx-tilegx.c	13 Jun 2011 15:54:10 -0000
*************** tilegx_elf_check_relocs (bfd *abfd, stru
*** 1549,1555 ****
    struct tilegx_elf_link_hash_table *htab;
    Elf_Internal_Shdr *symtab_hdr;
    struct elf_link_hash_entry **sym_hashes;
-   bfd_vma *local_got_offsets;
    const Elf_Internal_Rela *rel;
    const Elf_Internal_Rela *rel_end;
    asection *sreloc;
--- 1549,1554 ----
*************** tilegx_elf_check_relocs (bfd *abfd, stru
*** 1561,1567 ****
    htab = tilegx_elf_hash_table (info);
    symtab_hdr = &elf_tdata (abfd)->symtab_hdr;
    sym_hashes = elf_sym_hashes (abfd);
-   local_got_offsets = elf_local_got_offsets (abfd);
  
    sreloc = NULL;
  
--- 1560,1565 ----
*************** tilegx_finish_dyn (bfd *output_bfd, stru
*** 3767,3780 ****
    const struct elf_backend_data *bed;
    bfd_byte *dyncon, *dynconend;
    size_t dynsize;
-   bfd_boolean abi_64_p;
  
    htab = tilegx_elf_hash_table (info);
    BFD_ASSERT (htab != NULL);
    bed = get_elf_backend_data (output_bfd);
    dynsize = bed->s->sizeof_dyn;
    dynconend = sdyn->contents + sdyn->size;
-   abi_64_p = ABI_64_P (output_bfd);
  
    for (dyncon = sdyn->contents; dyncon < dynconend; dyncon += dynsize)
      {
--- 3765,3776 ----


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]