* dwarf2dbg.c (process_entries): Fix uninitialized variable warning.
authorRichard Henderson <rth@redhat.com>
Tue, 20 Sep 2005 21:00:15 +0000 (21:00 +0000)
committerRichard Henderson <rth@redhat.com>
Tue, 20 Sep 2005 21:00:15 +0000 (21:00 +0000)
gas/ChangeLog
gas/dwarf2dbg.c

index c4848424930f7e3f57ed9842c6eed32759e5fbb6..2506e6870c10fc2fbac3cc30b4645c0f8b2849f9 100644 (file)
@@ -1,3 +1,7 @@
+2005-09-20  Richard Henderson  <rth@redhat.com>
+
+       * dwarf2dbg.c (process_entries): Fix uninitialized variable warning.
+
 2005-09-20  Richard Henderson  <rth@redhat.com>
 
        * dwarf2dbg.c (struct line_entry): Replace frag and frag_ofs
index be59eba5db72ad637a691703468f2965e32412c9..c7d99c5997bdea090b4f761a23837b0d45c15a20 100644 (file)
@@ -1058,10 +1058,10 @@ process_entries (segT seg, struct line_entry *e)
   unsigned flags = DWARF2_LINE_DEFAULT_IS_STMT ? DWARF2_FLAG_IS_STMT : 0;
   fragS *last_frag = NULL, *frag;
   addressT last_frag_ofs = 0, frag_ofs;
-  symbolS *last_lab, *lab;
+  symbolS *last_lab = NULL, *lab;
   struct line_entry *next;
 
-  while (e)
+  do
     {
       int line_delta;
 
@@ -1129,6 +1129,7 @@ process_entries (segT seg, struct line_entry *e)
       free (e);
       e = next;
     }
+  while (e);
 
   /* Emit a DW_LNE_end_sequence for the end of the section.  */
   frag = last_frag_for_seg (seg);