PR gas/13167
	* dwarf2dbg.c (dwarf2_flush_pending_lines): Use symbol_temp_new_now.

gas/testsuite/
	PR gas/13167
	* gas/ia64/pr13167.d, gas/ia64/pr13167.s: New test.
	* gas/ia64/ia64.exp: Run it.
This commit is contained in:
Richard Sandiford 2011-09-08 12:18:28 +00:00
parent f6c802f429
commit 48b0740182
6 changed files with 67 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2011-09-08 Richard Sandiford <rdsandiford@googlemail.com>
PR gas/13167
* dwarf2dbg.c (dwarf2_flush_pending_lines): Use symbol_temp_new_now.
2011-09-05 Richard Sandiford <rdsandiford@googlemail.com>
PR gas/13024

View file

@ -313,7 +313,7 @@ dwarf2_flush_pending_lines (symbolS *label)
struct line_entry *e;
if (!label)
label = symbol_temp_new (now_seg, 0, frag_now);
label = symbol_temp_new_now ();
for (e = pending_lines; e; e = e->next)
e->label = label;

View file

@ -1,3 +1,9 @@
2011-09-08 Richard Sandiford <rdsandiford@googlemail.com>
PR gas/13167
* gas/ia64/pr13167.d, gas/ia64/pr13167.s: New test.
* gas/ia64/ia64.exp: Run it.
2011-09-07 Andreas Schwab <schwab@linux-m68k.org>
* gas/m68k/all.exp: Run "mode5" test also with -mcpu=5200.

View file

@ -94,4 +94,7 @@ if [istarget "ia64-*"] then {
run_dump_test "slotcount"
}
if { [istarget "ia64-*-elf*"] || [istarget "ia64-*-linux*"] } {
run_dump_test "pr13167"
}
}

View file

@ -0,0 +1,43 @@
#readelf: -wl
Raw dump of debug contents of section \.debug_line:
Offset: 0x0
Length: 51
DWARF Version: 2
Prologue Length: 26
Minimum Instruction Length: 1
Initial value of 'is_stmt': 1
Line Base: -5
Line Range: 14
Opcode Base: 13
Opcodes:
Opcode 1 has 0 args
Opcode 2 has 1 args
Opcode 3 has 1 args
Opcode 4 has 1 args
Opcode 5 has 1 args
Opcode 6 has 0 args
Opcode 7 has 0 args
Opcode 8 has 0 args
Opcode 9 has 1 args
Opcode 10 has 0 args
Opcode 11 has 0 args
Opcode 12 has 1 args
The Directory Table is empty\.
The File Name Table:
Entry Dir Time Size Name
1 0 0 0 x\.c
Line Number Statements:
Extended opcode 2: set Address to 0x1
Special opcode 8: advance Address by 0 to 0x1 and Line by 3 to 4
Special opcode 216: advance Address by 15 to 0x10 and Line by 1 to 5
Special opcode 228: advance Address by 16 to 0x20 and Line by -1 to 4
Advance PC by 16 to 0x30
Extended opcode 1: End of Sequence

View file

@ -0,0 +1,9 @@
.file 1 "x.c"
mov r1 = r35
.loc 1 4 0
nop 0
mov r36 = r8
br.call.sptk.many b0 = _U_Qfcnvff_quad_to_sgl#
.loc 1 5 0
.loc 1 4 0
mov r1 = r35