]> git.ipfire.org Git - thirdparty/gcc.git/commit
dwarf2out: Convert fde_table to a VEC.
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 7 Jul 2011 23:57:26 +0000 (23:57 +0000)
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 7 Jul 2011 23:57:26 +0000 (23:57 +0000)
commit6033bf1158967debce9f2f2571d42586b4c97a67
treeee3ca739383122468e3b5200d2fd5d7d6e90662c
parentc746c5c3e1d3ec6502d11fd9b82ac12ab62d2e4c
dwarf2out: Convert fde_table to a VEC.

Prepare for allocating the FDE for the current function earlier
than dwarf2out_begin_prologue.

        * dwarf2out.c (fde_table, fde_table_allocated, fde_table_in_use,
        FDE_TABLE_INCREMENT): Replace with...
        (fde_vec): ... this, a new vector.
        (current_fde): Remove.  Replace all users with cfun->fde.
        (output_call_frame_info): Use FOR_EACH_VEC_ELT over fde_vec.
        (size_of_aranges, dwarf2out_finish): Likewise.
        (dwarf2out_alloc_current_fde): Break out from ...
        (dwarf2out_begin_prologue): ... here.
        (dwarf2out_frame_init): Remove.
        * dwarf2cfi.c: Update all users of current_fde.
        (dwarf2out_frame_init): Rename from dwarf2cfi_frame_init.
        * dwarf2out.h: Update decls.
        (dw_fde_node): Add fde_index member.
        * function.h (struct function): Add fde member.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@176018 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/dwarf2cfi.c
gcc/dwarf2out.c
gcc/dwarf2out.h
gcc/function.h