* Minor cleanups provoked by gcc warnings:
authorIan Lance Taylor <ian@airs.com>
Tue, 23 Feb 1993 21:08:32 +0000 (21:08 +0000)
committerIan Lance Taylor <ian@airs.com>
Tue, 23 Feb 1993 21:08:32 +0000 (21:08 +0000)
* aoutx.h (NAME(aout, reloc_type_lookup)),
cpu-h8300.c (local_bfd_reloc_type_lookup),
cpu-z8k.c (local_bfd_reloc_type_lookup): Added default case to
switches.
* archive.c (do_slurp_bsd_armap, do_slurp_coff_armap),
ieee.c (ieee_slurp_section_data),
elf.c (elf_make_sections, elf_fake_sections,
elf_compute_section_file_positions, elf_write_object_contents):
Removed unused variables.
* archures.c: Removed /* from within comment.
* bout.c (b_out_squirt_out_relocs): Initialize r_extern.
* oasys.c (oasys_write_data): Initialize i.

bfd/ChangeLog
bfd/elf.c
bfd/ieee.c

index 8c3cfc9f79eaa7f58b97c938df73a1c673ff38c5..e57946a2f347bc999c1a39c11f3c226fd5208a26 100644 (file)
@@ -7,6 +7,20 @@ Tue Feb 23 12:17:16 1993  Ian Lance Taylor  (ian@cygnus.com)
        from coff_make_debug_symbol.
        * libcoff.h: Updated accordingly.
 
+       * Minor cleanups provoked by gcc warnings:
+       * aoutx.h (NAME(aout, reloc_type_lookup)),
+       cpu-h8300.c (local_bfd_reloc_type_lookup),
+       cpu-z8k.c (local_bfd_reloc_type_lookup): Added default case to
+       switches.
+       * archive.c (do_slurp_bsd_armap, do_slurp_coff_armap),
+       ieee.c (ieee_slurp_section_data),
+       elf.c (elf_make_sections, elf_fake_sections,
+       elf_compute_section_file_positions, elf_write_object_contents):
+       Removed unused variables.
+       * archures.c: Removed /* from within comment.
+       * bout.c (b_out_squirt_out_relocs): Initialize r_extern.
+       * oasys.c (oasys_write_data): Initialize i.
+
 Mon Feb 22 18:40:06 1993  Per Bothner  (bothner@rtl.cygnus.com)
 
        * libcoff.h (obj_raw_syment_coun):  New macro.
index 9fad4c1ea8ddf07501d398fe720700fdd7525dd9..c21fb8d6ae2ae61556171c9df8af5aac4cb06ed4 100644 (file)
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -1460,11 +1460,8 @@ DEFUN (elf_make_sections, (abfd, asect, obj),
          /* emit a reloc section, and thus strtab and symtab... */
          Elf_Internal_Shdr *rela_hdr;
          Elf_Internal_Shdr *symtab_hdr;
-         Elf_Internal_Shdr *symstrtab_hdr;
          Elf_External_Rela *outbound_relocs;
-         Elf_External_Sym *outbound_syms;
          int rela_section;
-         int symstrtab_section;
          
          symtab_hdr = &thunk->i_shdrp[thunk->symtab_section];
 
@@ -1515,7 +1512,6 @@ DEFUN (elf_fake_sections, (abfd, asect, obj),
   /* most of what is in bfd_shdr_from_section goes in here... */
   /* and all of these sections generate at *least* one ELF section. */
   int this_section;
-  int idx;
   
   /* check if we're making a PROGBITS section... */
   /* if ((asect->flags & SEC_ALLOC) && (asect->flags & SEC_LOAD)) */
@@ -1543,8 +1539,6 @@ DEFUN (elf_fake_sections, (abfd, asect, obj),
          Elf_Internal_Shdr *rela_hdr;
          Elf_Internal_Shdr *symtab_hdr;
          Elf_Internal_Shdr *symstrtab_hdr;
-         Elf_External_Rela *outbound_relocs;
-         Elf_External_Sym *outbound_syms;
          int rela_section;
          int symstrtab_section;
          
@@ -1594,7 +1588,6 @@ DEFUN (elf_compute_section_file_positions, (abfd), bfd *abfd)
   Elf_Internal_Shdr *i_shdrp;  /* Section header table, internal form */
   struct strtab *shstrtab;
   int count, maxsections;
-  int outbase;
   elf_sect_thunk est;
 
   if (! elf_shstrtab (abfd)) {
@@ -1707,12 +1700,9 @@ DEFUN (elf_write_object_contents, (abfd), bfd *abfd)
 {
   Elf_External_Ehdr x_ehdr;    /* Elf file header, external form */
   Elf_Internal_Ehdr *i_ehdrp;  /* Elf file header, internal form */
-  Elf_External_Phdr *x_phdrp;  /* Program header table, external form */
-  Elf_Internal_Phdr *i_phdrp;  /* Program header table, internal form */
   Elf_External_Shdr *x_shdrp;  /* Section header table, external form */
   Elf_Internal_Shdr *i_shdrp;  /* Section header table, internal form */
   asection *nsect;
-  int maxsections;
   elf_sect_thunk est;
   
   int outbase = 0;
index f77724111852d02d2a51741cf4c30b1333218445..eb8f09e0a659e602f7628e336bdbc55e564ca873 100644 (file)
@@ -1497,7 +1497,6 @@ DEFUN(ieee_slurp_section_data,(abfd),
              case ieee_set_current_pc_enum & 0xff:
                  {
                    bfd_vma value;
-                   asection *dsection;
                    ieee_symbol_index_type symbol;
                    unsigned int extra;
                    boolean pcrel;