* config/xtensa-istack.h (tinsn_struct): Replace linenum field
commit6257684aa3b316ab0b0cbc431343ede3874b7edf
authorBob Wilson <bob.wilson@acm.org>
Mon, 19 Nov 2007 19:40:55 +0000 (19 19:40 +0000)
committerBob Wilson <bob.wilson@acm.org>
Mon, 19 Nov 2007 19:40:55 +0000 (19 19:40 +0000)
treeb7e72354f37ac3cfc1aaf53d1fa0bf15388780aa
parentef75f1331dbe0b503c79c6f303e98b0c61e7b70a
* config/xtensa-istack.h (tinsn_struct): Replace linenum field
with loc_directive_seen and debug_line.
* config/tc-xtensa.c: Include xtensa-istack.h after dwarf2dbg.h.
(xg_build_to_insn): Copy the new fields instead of linenum.
(xg_build_token_insn): Likewise.  Abort on INSTR_LABEL_DEF and move
common code out of the switch.
(md_assemble): Set new tinsn fields from DWARF information.  Call
dwarf2_consume_line_info.
(xg_assemble_vliw_tokens): Update the code to select the "best" line
number to use new information.  Call dwarf2_gen_line_info instead
of dwarf2_emit_insn.
gas/ChangeLog
gas/config/tc-xtensa.c
gas/config/xtensa-istack.h