summaryrefslogtreecommitdiff
path: root/gas/as.c
diff options
context:
space:
mode:
Diffstat (limited to 'gas/as.c')
-rw-r--r--gas/as.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gas/as.c b/gas/as.c
index 4878fcf6f7..61eea131c5 100644
--- a/gas/as.c
+++ b/gas/as.c
@@ -885,6 +885,10 @@ main (argc, argv)
md_end ();
#endif
+ /* If we've been collecting dwarf2 .debug_line info, either for
+ assembly debugging or on behalf of the compiler, emit it now. */
+ dwarf2_finish ();
+
if (seen_at_least_1_file ()
&& (flag_always_generate_output || had_errors () == 0))
keep_it = 1;