gas: Make dwarf2dbg.c versions specific and add DW_AT_high_pc case for DWARF 4+.
authorMark Wielaard <mjw@redhat.com>
Mon, 30 Apr 2012 14:32:28 +0000 (14:32 +0000)
committerMark Wielaard <mjw@redhat.com>
Mon, 30 Apr 2012 14:32:28 +0000 (14:32 +0000)
commit88ebb0a1567bdc11a39c466735d5fd145f326c1b
tree7f8af837536e570ffdf4d2d271047eafbb87c0a5
parent45162986de31c02d5100f87195b1fa97357f815a
gas: Make dwarf2dbg.c versions specific and add DW_AT_high_pc case for DWARF 4+.

    * dwarf2dbg.c (DWARF2_ARANGES_VERSION): New define to 2.
    (DWARF2_LINE_VERSION): Likewise.
    (out_debug_line): Use DWARF2_LINE_VERSION not DWARF2_VERSION.
    (out_debug_aranges): Use DWARF2_ARANGES_VERSION not DWARF2_VERSION.
    (out_debug_abbrev): Use DW_FORM_data for DW_AT_high_pc when
    DWARF2_VERSION >= 4.
    (out_debug_info): Use difference between start and end as data
    value for DW_AT_high_pc when DWARF2_VERSION >= 4.
    * config/tc-ia64.h (DWARF2_LINE_VERSION): Override it.
gas/ChangeLog
gas/config/tc-ia64.h
gas/dwarf2dbg.c