From b1da2fa7f13f6a7ef84a12ebcb84f14af4be81d9 Mon Sep 17 00:00:00 2001 From: Alexandre Oliva Date: Wed, 12 Apr 2017 00:14:22 -0300 Subject: [PATCH] LVU: do NOT emit line info before asm source file is set --- gas/dwarf2dbg.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gas/dwarf2dbg.c b/gas/dwarf2dbg.c index 0f9197866e6..57e27c5ae16 100644 --- a/gas/dwarf2dbg.c +++ b/gas/dwarf2dbg.c @@ -528,7 +528,9 @@ dwarf2_emit_insn (int size) { struct dwarf2_line_info loc; - if (!dwarf2_loc_directive_seen && debug_type != DEBUG_DWARF2) + if (debug_type != DEBUG_DWARF2 + ? !dwarf2_loc_directive_seen + : !seen_at_least_1_file ()) return; dwarf2_where (&loc); -- 2.47.2