aboutsummaryrefslogtreecommitdiff
path: root/gas/testsuite
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@acm.org>2007-11-19 18:15:53 +0000
committerBob Wilson <bob.wilson@acm.org>2007-11-19 18:15:53 +0000
commit661ba50f530d936e1e9b260f0c4424d92ce9076f (patch)
tree3d598855ac24b49e4ddcc635441232f7565a79a2 /gas/testsuite
parent3e0873ac4fa365e8c170adcb8b9e1fd727ed16c3 (diff)
downloadgdb-661ba50f530d936e1e9b260f0c4424d92ce9076f.zip
gdb-661ba50f530d936e1e9b260f0c4424d92ce9076f.tar.gz
gdb-661ba50f530d936e1e9b260f0c4424d92ce9076f.tar.bz2
* dwarf2dbg.c (dwarf2_consume_line_info): New.
(dwarf2_emit_insn): Use it here. (dwarf2_directive_loc): Fix check for consecutive .loc directives when debug_type is DEBUG_DWARF2. * dwarf2dbg.h (dwarf2_consume_line_info): New prototype. * config/tc-ia64.c (ia64_flush_insns): Call dwarf2_consume_line_info. (md_assemble): Likewise. testsuite/ * gas/lns/lns.exp: Run lns-common-1 with alternate source for ia64. * gas/lns/lns-common-1-ia64.s: New file.
Diffstat (limited to 'gas/testsuite')
-rw-r--r--gas/testsuite/ChangeLog5
-rw-r--r--gas/testsuite/gas/lns/lns-common-1-ia64.s16
-rw-r--r--gas/testsuite/gas/lns/lns.exp3
3 files changed, 23 insertions, 1 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index a4ea406..e5d1b64 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2007-11-19 Bob Wilson <bob.wilson@acm.org>
+
+ * gas/lns/lns.exp: Run lns-common-1 with alternate source for ia64.
+ * gas/lns/lns-common-1-ia64.s: New file.
+
2007-11-14 H.J. Lu <hongjiu.lu@intel.com>
* gas/ia64/dv-raw-err.s: Add tests for ar.ruc.
diff --git a/gas/testsuite/gas/lns/lns-common-1-ia64.s b/gas/testsuite/gas/lns/lns-common-1-ia64.s
new file mode 100644
index 0000000..ee6c08b
--- /dev/null
+++ b/gas/testsuite/gas/lns/lns-common-1-ia64.s
@@ -0,0 +1,16 @@
+ .file 1 "foo.c"
+ .loc 1 1
+ .explicit
+ { .mii; nop 0; nop 0; nop 0 ;; }
+ .loc 1 2 3
+ { .mii; nop 0; nop 0; nop 0 ;; }
+ .loc 1 3 prologue_end
+ { .mii; nop 0; nop 0; nop 0 ;; }
+ .loc 1 4 0 epilogue_begin
+ { .mii; nop 0; nop 0; nop 0 ;; }
+ .loc 1 5 isa 1 basic_block
+ { .mii; nop 0; nop 0; nop 0 ;; }
+ .loc 1 6 is_stmt 0
+ { .mii; nop 0; nop 0; nop 0 ;; }
+ .loc 1 7 is_stmt 1
+ { .mii; nop 0; nop 0; nop 0 ;; }
diff --git a/gas/testsuite/gas/lns/lns.exp b/gas/testsuite/gas/lns/lns.exp
index a192361..b292f2e 100644
--- a/gas/testsuite/gas/lns/lns.exp
+++ b/gas/testsuite/gas/lns/lns.exp
@@ -13,7 +13,6 @@ run_dump_test "lns-duplicate"
# information (d10v).
if {
![istarget d10v-*-*]
- && ![istarget ia64*-*-*]
&& ![istarget i370-*-*]
&& ![istarget i960-*-*]
&& ![istarget mcore-*-*]
@@ -23,6 +22,8 @@ if {
# Use alternate file for targets using DW_LNS_fixed_advance_pc opcodes.
if { [istarget xtensa-*-*] } {
run_dump_test "lns-common-1-alt"
+ } elseif { [istarget ia64*-*-*] } {
+ run_dump_test "lns-common-1" { { source "lns-common-1-ia64.s" } }
} else {
run_dump_test "lns-common-1"
}