gas/
authorRichard Sandiford <rdsandiford@googlemail.com>
Mon, 5 Sep 2011 19:19:01 +0000 (19:19 +0000)
committerRichard Sandiford <rdsandiford@googlemail.com>
Mon, 5 Sep 2011 19:19:01 +0000 (19:19 +0000)
commit5045d766495cc896ba55ff3c9d683cb4d31a15e6
tree11265daafe22eb4896f8acc2b843bfb01d7906d0
parentf1d90504dc71a1e66a1f17c71ec1cef2e594682d
gas/
PR gas/13024
* dwarf2dbg.c (pending_lines, pending_lines_tail): New variables.
(dwarf2_gen_line_info_1): Delete.
(dwarf2_push_line, dwarf2_flush_pending_lines): New functions.
(dwarf2_gen_line_info, dwarf2_emit_label): Use them.
(dwarf2_consume_line_info): Call dwarf2_flush_pending_lines.
(dwarf2_directive_loc): Push previous .locs instead of generating
them immediately.

gas/testsuite/
* gas/mips/loc-swap-2.s, gas/mips/loc-swap-2.d,
gas/mips/micromips@loc-swap-2.d,
gas/mips/mips16@loc-swap-2.d: New test.
* gas/mips/mips.exp: Run it.
gas/ChangeLog
gas/dwarf2dbg.c
gas/testsuite/ChangeLog
gas/testsuite/gas/mips/loc-swap-2.d [new file with mode: 0644]
gas/testsuite/gas/mips/loc-swap-2.s [new file with mode: 0644]
gas/testsuite/gas/mips/micromips@loc-swap-2.d [new file with mode: 0644]
gas/testsuite/gas/mips/mips.exp
gas/testsuite/gas/mips/mips16@loc-swap-2.d [new file with mode: 0644]