* ecoff.c (_bfd_ecoff_write_armap): Initialise rehash.
authorNick Clifton <nickc@redhat.com>
Sat, 21 Apr 2007 07:49:29 +0000 (07:49 +0000)
committerNick Clifton <nickc@redhat.com>
Sat, 21 Apr 2007 07:49:29 +0000 (07:49 +0000)
  (ecoff_link_add_archive_symbols): Likewise.
* coff-m68k.c (m68kcoff_common_addend_rtype_to_howto): Initialise relent.howto.
* ieee.c (parse_int): Initialise x.
  (must_parse_int): Initialise result.
  (ieee_slurp_external_symbols): Initialise value.

bfd/ChangeLog
bfd/coff-m68k.c
bfd/ecoff.c
bfd/ieee.c

index 46d886201fbcdb960a242cc4d7645f72a7b7f008..ad991c833eb69b91086c181fa8b5e65b76ae7b9a 100644 (file)
@@ -1,3 +1,13 @@
+2007-04-21  Nick Clifton  <nickc@redhat.com>
+
+       * ecoff.c (_bfd_ecoff_write_armap): Initialise rehash.
+       (ecoff_link_add_archive_symbols): Likewise.
+       * coff-m68k.c (m68kcoff_common_addend_rtype_to_howto): Initialise
+       relent.howto.
+       * ieee.c (parse_int): Initialise x.
+       (must_parse_int): Initialise result.
+       (ieee_slurp_external_symbols): Initialise value.
+
 2007-04-21  Alan Modra  <amodra@bigpond.net.au>
 
        * config.bfd (spu-*-elf): Delete targ_selvecs.
index a499bd18fae5e175f40e7482dc5808902dad059a..ae524e47e6a92a487743f580637b4ad2ba5a1321 100644 (file)
@@ -411,6 +411,7 @@ m68kcoff_common_addend_rtype_to_howto (abfd, sec, rel, h, sym, addendp)
   arelent relent;
   reloc_howto_type *howto;
 
+  relent.howto = NULL;
   RTYPE2HOWTO (&relent, rel);
 
   howto = relent.howto;
index eef59dc0f14b10f47eab7e358a599614fa45a171..0b4262035c0027f335e83f76b9108cfc1b27b8f3 100644 (file)
@@ -3087,7 +3087,7 @@ _bfd_ecoff_write_armap (bfd *abfd,
   last_elt = current;
   for (i = 0; i < orl_count; i++)
     {
-      unsigned int hash, rehash;
+      unsigned int hash, rehash = 0;
 
       /* Advance firstreal to the file position of this archive
         element.  */
@@ -3757,7 +3757,7 @@ ecoff_link_add_archive_symbols (bfd *abfd, struct bfd_link_info *info)
   while (*pundef != NULL)
     {
       struct bfd_link_hash_entry *h;
-      unsigned int hash, rehash;
+      unsigned int hash, rehash = 0;
       unsigned int file_offset;
       const char *name;
       bfd *element;
index 6ea0700edb6b14dfa8cf574fe01a7f2910a1de77..8e4678b4672f2d712ba4e0a99273dddeb6edd851 100644 (file)
@@ -370,7 +370,7 @@ parse_int (common_header_type *ieee, bfd_vma *value_ptr)
 static int
 parse_i (common_header_type *ieee, bfd_boolean *ok)
 {
-  bfd_vma x;
+  bfd_vma x = 0;
   *ok = parse_int (ieee, &x);
   return x;
 }
@@ -378,7 +378,7 @@ parse_i (common_header_type *ieee, bfd_boolean *ok)
 static bfd_vma
 must_parse_int (common_header_type *ieee)
 {
-  bfd_vma result;
+  bfd_vma result = 0;
   BFD_ASSERT (parse_int (ieee, &result));
   return result;
 }
@@ -767,7 +767,7 @@ ieee_slurp_external_symbols (bfd *abfd)
            unsigned int symbol_name_index;
            unsigned int symbol_type_index;
            unsigned int symbol_attribute_def;
-           bfd_vma value;
+           bfd_vma value = 0;
 
            switch (read_2bytes (&ieee->h))
              {
This page took 0.04108 seconds and 4 git commands to generate.