* gas/lns/lns-duplicate.d, gas/lns/lns-duplicate.s: New.
* gas/lns/lns.exp: Run lns-duplicate.
+2007-08-29 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * dwarf2dbg.c (dwarf2_directive_loc): Emit duplicate .loc directives.
+
2007-08-28 Daniel Jacobowitz <dan@codesourcery.com>
* doc/c-arc.texi: Fix typo.
{
offsetT filenum, line;
+ /* If we see two .loc directives in a row, force the first one to be
+ output now. */
+ if (loc_directive_seen)
+ dwarf2_emit_insn (0);
+
filenum = get_absolute_expression ();
SKIP_WHITESPACE ();
line = get_absolute_expression ();
+2007-08-29 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * gas/lns/lns-duplicate.d, gas/lns/lns-duplicate.s: New.
+ * gas/lns/lns.exp: Run lns-duplicate.
+
2007-08-29 H.J. Lu <hongjiu.lu@intel.com>
* gas/i386/i386.exp: Run x86-64-reg and x86-64-reg-intel.
--- /dev/null
+#readelf: -wl
+#name: lns-duplicate
+Dump of debug contents of section \.debug_line:
+#...
+ Line Number Statements:
+ Extended opcode 2: set Address to .*
+ Copy
+ Set basic block
+ .* by 1 to 2
+#pass
--- /dev/null
+ .loc_mark_labels 1
+ .file 1 "foo.s"
+ .loc 1 1 0
+ .loc 1 2 0
+.Llabel:
run_list_test "lns-diag-1" ""
+run_dump_test "lns-duplicate"
+
# ??? Won't work on targets that don't have a bare "nop" insn.
# Perhaps we could arrange for an include file or something that
# defined a macro...