diff options
author | Richard Henderson <rth@redhat.com> | 2005-09-20 21:00:15 +0000 |
---|---|---|
committer | Richard Henderson <rth@redhat.com> | 2005-09-20 21:00:15 +0000 |
commit | fead5cd91c33f72d90553f99b10349b0f154d9df (patch) | |
tree | df4b9784f6631e0fcecc88aec02c5ea23a84f517 | |
parent | 07a53e5cdb3d786ea59bdce443b307c04f691d17 (diff) | |
download | gdb-fead5cd91c33f72d90553f99b10349b0f154d9df.zip gdb-fead5cd91c33f72d90553f99b10349b0f154d9df.tar.gz gdb-fead5cd91c33f72d90553f99b10349b0f154d9df.tar.bz2 |
* dwarf2dbg.c (process_entries): Fix uninitialized variable warning.
-rw-r--r-- | gas/ChangeLog | 4 | ||||
-rw-r--r-- | gas/dwarf2dbg.c | 5 |
2 files changed, 7 insertions, 2 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index c484842..2506e68 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,5 +1,9 @@ 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 with label. (dwarf2_loc_mark_labels): New. diff --git a/gas/dwarf2dbg.c b/gas/dwarf2dbg.c index be59eba..c7d99c5 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); |