]> gcc.gnu.org Git - gcc.git/commit
DWARF: turn dw_loc_descr_node field into hash map for frame offset check
authorPierre-Marie de Rodat <derodat@adacore.com>
Wed, 27 Apr 2016 15:03:40 +0000 (15:03 +0000)
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>
Wed, 27 Apr 2016 15:03:40 +0000 (15:03 +0000)
commitc027737fd9604ea4b58b3bf9eda1f7ac0bc99ce0
tree571e8338b1d1265dfd5d55f4b9b02250c6713fe8
parent53f2382df4de916f8918881f9ef382c410cb1c6a
DWARF: turn dw_loc_descr_node field into hash map for frame offset check

As discussed on
<https://gcc.gnu.org/ml/gcc-patches/2016-02/msg01708.html>, this change
removes a field in the dw_loc_descr_node structure so we can get rid of
the CHECKING_P macro usage.

This field was used to perform consistency checks for frame offset in
DWARF procedures. As a replacement, this commit turns the "visited
nodes" set in resolve_args_picking_1 into a map that remembers for each
dw_loc_descr_node the frame offset associated to it, so that the
consistency check is still operational.

Boostrapped and regtested on x86_64-linux.

2016-04-27  Pierre-Marie de Rodat  <derodat@adacore.com>

* dwarf2out.h (struct dw_loc_descr_node): Remove the
dw_loc_frame_offset field.
* dwarf2out.c (new_loc_descr): Likewise.
(resolve_args_picking_1): Turn the VISITED hash set into a
FRAME_OFFSET hash map. Use it to associate a frame offset to
visited nodes. Remove uses of the CHECKING_P macro.
(resolve_args_picking): Update call to resolve_args_picking_1.

From-SVN: r235515
gcc/ChangeLog
gcc/dwarf2out.c
gcc/dwarf2out.h
This page took 0.058666 seconds and 5 git commands to generate.