* 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 10f9ba219852f083199b15dfed47aab0831111ff..fbba5b424a92f63a380bd74fe0d6113ad6223255 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 c8f0fe03601af0ad472f94978c5c4cd80546ea02..dc4114bb1c11987c05cd026bbd342083f2c6909d 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 a1f6684bb61cc1fab98c71c0e5529198fdf71428..c17701c16e8927122a3c1e7f55aaf42d5489cd59 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 4246e94f3937e05949c191879aebc9cc21466bcc..d3d79b4a4d75f5a02b5a2bded67ff29968bd49c9 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 fb2ab96c99ed602ebbedb1558fca12fdcb50945d..6695fe51bea2cbce4d9db127b904dcfbea002ce6 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.  */