]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
LVU: do NOT emit line info before asm source file is set
authorAlexandre Oliva <aoliva@redhat.com>
Wed, 12 Apr 2017 03:14:22 +0000 (00:14 -0300)
committerAlexandre Oliva <aoliva@redhat.com>
Wed, 12 Apr 2017 03:14:22 +0000 (00:14 -0300)
gas/dwarf2dbg.c

index 0f9197866e68b7e713d11ee3ba9419c43719d37b..57e27c5ae16650cece2a4b25d61ebcf251442e01 100644 (file)
@@ -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);