diff options
author | Pierre-Marie de Rodat <derodat@adacore.com> | 2016-04-27 15:03:40 +0000 |
---|---|---|
committer | Pierre-Marie de Rodat <pmderodat@gcc.gnu.org> | 2016-04-27 15:03:40 +0000 |
commit | c027737fd9604ea4b58b3bf9eda1f7ac0bc99ce0 (patch) | |
tree | 571e8338b1d1265dfd5d55f4b9b02250c6713fe8 /gcc/dwarf2out.h | |
parent | 53f2382df4de916f8918881f9ef382c410cb1c6a (diff) | |
download | gcc-c027737fd9604ea4b58b3bf9eda1f7ac0bc99ce0.zip gcc-c027737fd9604ea4b58b3bf9eda1f7ac0bc99ce0.tar.gz gcc-c027737fd9604ea4b58b3bf9eda1f7ac0bc99ce0.tar.bz2 |
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
Diffstat (limited to 'gcc/dwarf2out.h')
-rw-r--r-- | gcc/dwarf2out.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/gcc/dwarf2out.h b/gcc/dwarf2out.h index 91b3d6b..abf0550 100644 --- a/gcc/dwarf2out.h +++ b/gcc/dwarf2out.h @@ -239,12 +239,6 @@ struct GTY((chain_next ("%h.dw_loc_next"))) dw_loc_descr_node { frame offset. */ unsigned int frame_offset_rel : 1; int dw_loc_addr; -#if CHECKING_P - /* When translating a function into a DWARF procedure, contains the frame - offset *before* evaluating this operation. It is -1 when not yet - initialized. */ - int dw_loc_frame_offset; -#endif dw_val_node dw_loc_oprnd1; dw_val_node dw_loc_oprnd2; }; |