From 661ba50f530d936e1e9b260f0c4424d92ce9076f Mon Sep 17 00:00:00 2001 From: Bob Wilson Date: Mon, 19 Nov 2007 18:15:53 +0000 Subject: * dwarf2dbg.c (dwarf2_consume_line_info): New. (dwarf2_emit_insn): Use it here. (dwarf2_directive_loc): Fix check for consecutive .loc directives when debug_type is DEBUG_DWARF2. * dwarf2dbg.h (dwarf2_consume_line_info): New prototype. * config/tc-ia64.c (ia64_flush_insns): Call dwarf2_consume_line_info. (md_assemble): Likewise. testsuite/ * gas/lns/lns.exp: Run lns-common-1 with alternate source for ia64. * gas/lns/lns-common-1-ia64.s: New file. --- gas/config/tc-ia64.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gas/config') diff --git a/gas/config/tc-ia64.c b/gas/config/tc-ia64.c index 2e0f86c..263374b 100644 --- a/gas/config/tc-ia64.c +++ b/gas/config/tc-ia64.c @@ -1132,6 +1132,7 @@ ia64_flush_insns () dwarf2_where (&CURR_SLOT.debug_line); CURR_SLOT.debug_line.flags |= DWARF2_FLAG_BASIC_BLOCK; dwarf2_gen_line_info (frag_now_fix (), &CURR_SLOT.debug_line); + dwarf2_consume_line_info (); } CURR_SLOT.label_fixups = 0; @@ -10968,6 +10969,7 @@ md_assemble (str) CURR_SLOT.idesc = idesc; as_where (&CURR_SLOT.src_file, &CURR_SLOT.src_line); dwarf2_where (&CURR_SLOT.debug_line); + dwarf2_consume_line_info (); /* Add unwind entries, if there are any. */ if (unwind.current_entry) -- cgit v1.1