aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog4
-rw-r--r--gas/dwarf2dbg.c10
2 files changed, 6 insertions, 8 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 835b56f..cbdaa3d 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,5 +1,9 @@
2007-11-19 Bob Wilson <bob.wilson@acm.org>
+ * dwarf2dbg.c (dwarf2_emit_label): Use dwarf2_consume_line_info.
+
+2007-11-19 Bob Wilson <bob.wilson@acm.org>
+
* dwarf2dbg.c (dwarf2_consume_line_info): New.
(dwarf2_emit_insn): Use it here.
(dwarf2_directive_loc): Fix check for consecutive .loc directives
diff --git a/gas/dwarf2dbg.c b/gas/dwarf2dbg.c
index 97a60c7..96da797 100644
--- a/gas/dwarf2dbg.c
+++ b/gas/dwarf2dbg.c
@@ -419,17 +419,11 @@ dwarf2_emit_label (symbolS *label)
if (debug_type == DEBUG_DWARF2)
dwarf2_where (&loc);
else
- {
- loc = current;
- loc_directive_seen = FALSE;
- }
+ loc = current;
loc.flags |= DWARF2_FLAG_BASIC_BLOCK;
- current.flags &= ~(DWARF2_FLAG_BASIC_BLOCK
- | DWARF2_FLAG_PROLOGUE_END
- | DWARF2_FLAG_EPILOGUE_BEGIN);
-
+ dwarf2_consume_line_info ();
dwarf2_gen_line_info_1 (label, &loc);
}