OSDN Git Service

* coff-or32.c (bfd_section_from_shdr): Remove unused local
authorBen Elliston <bje@au.ibm.com>
Thu, 4 May 2006 05:05:25 +0000 (05:05 +0000)
committerBen Elliston <bje@au.ibm.com>
Thu, 4 May 2006 05:05:25 +0000 (05:05 +0000)
variable `ptr'.
* cofflink.c (process_embedded_commands): Remove unused local
variables `had_read' and `had_shared'.
* ecofflink.c (bfd_ecoff_debug_accumulate): Remove unused local
variable `fdr_adr'.
* ihex.c (ihex_read_section): Remove unused local variable `addr'.

bfd/ChangeLog
bfd/coff-or32.c
bfd/cofflink.c
bfd/ecofflink.c
bfd/ihex.c

index 10f9ba2..fbba5b4 100644 (file)
@@ -1,3 +1,13 @@
+2006-05-04  Ben Elliston  <bje@au.ibm.com>
+
+       * coff-or32.c (bfd_section_from_shdr): Remove unused local
+       variable `ptr'.
+       * cofflink.c (process_embedded_commands): Remove unused local
+       variables `had_read' and `had_shared'.
+       * ecofflink.c (bfd_ecoff_debug_accumulate): Remove unused local
+       variable `fdr_adr'.
+       * ihex.c (ihex_read_section): Remove unused local variable `addr'.
+
 2006-05-03  Alan Modra  <amodra@bigpond.net.au>
 
        * libbfd-in.h (_bfd_generic_new_section_hook): Declare.
index c8f0fe0..dc4114b 100644 (file)
@@ -317,11 +317,7 @@ reloc_processing (relent,reloc, symbols, abfd, section)
     }
   else
     {
-      asymbol *ptr;
       relent->sym_ptr_ptr = symbols + obj_convert (abfd)[reloc->r_symndx];
-
-      ptr = *(relent->sym_ptr_ptr);
-
       relent->addend = 0;
       relent->address-= section->vma;
 
index a1f6684..c17701c 100644 (file)
@@ -1239,9 +1239,7 @@ process_embedded_commands (bfd *output_bfd,
          asection *asec;
          int loop = 1;
          int had_write = 0;
-         int had_read = 0;
          int had_exec= 0;
-         int had_shared= 0;
 
          s += 5;
          s = get_name (s, &name);
@@ -1255,10 +1253,8 @@ process_embedded_commands (bfd *output_bfd,
                  had_write = 1;
                  break;
                case 'R':
-                 had_read = 1;
                  break;
                case 'S':
-                 had_shared = 1;
                  break;
                case 'X':
                  had_exec = 1;
index 4246e94..d3d79b4 100644 (file)
@@ -782,7 +782,6 @@ bfd_ecoff_debug_accumulate (handle, output_bfd, output_debug, output_swap,
        fdr_ptr += fdr_add, i++)
     {
       FDR fdr;
-      bfd_vma fdr_adr;
       bfd_byte *sym_out;
       bfd_byte *lraw_src;
       bfd_byte *lraw_end;
@@ -799,8 +798,6 @@ bfd_ecoff_debug_accumulate (handle, output_bfd, output_debug, output_swap,
       else
        (*input_swap->swap_fdr_in) (input_bfd, (PTR) fdr_ptr, &fdr);
 
-      fdr_adr = fdr.adr;
-
       /* FIXME: It is conceivable that this FDR points to the .init or
         .fini section, in which case this will not do the right
         thing.  */
index fb2ab96..6695fe5 100644 (file)
@@ -553,7 +553,6 @@ ihex_read_section (bfd *abfd, asection *section, bfd_byte *contents)
     {
       char hdr[8];
       unsigned int len;
-      bfd_vma addr;
       unsigned int type;
       unsigned int i;
 
@@ -568,7 +567,6 @@ ihex_read_section (bfd *abfd, asection *section, bfd_byte *contents)
        goto error_return;
 
       len = HEX2 (hdr);
-      addr = HEX4 (hdr + 2);
       type = HEX2 (hdr + 6);
 
       /* We should only see type 0 records here.  */