summaryrefslogtreecommitdiff
path: root/gas/dwarf2dbg.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2005-09-20 21:00:15 +0000
committerRichard Henderson <rth@redhat.com>2005-09-20 21:00:15 +0000
commit35090e7dab2f8d32321056b3163ea08adbfb1cf5 (patch)
tree58bd46faeb564a374beffe647efc9d60836f3e93 /gas/dwarf2dbg.c
parentb760a3c743413d59f73b4b69a7345c48ae667fe2 (diff)
downloadbinutils-redhat-35090e7dab2f8d32321056b3163ea08adbfb1cf5.tar.gz
* dwarf2dbg.c (process_entries): Fix uninitialized variable warning.
Diffstat (limited to 'gas/dwarf2dbg.c')
-rw-r--r--gas/dwarf2dbg.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gas/dwarf2dbg.c b/gas/dwarf2dbg.c
index be59eba5db..c7d99c5997 100644
--- a/gas/dwarf2dbg.c
+++ b/gas/dwarf2dbg.c
@@ -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);