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);