diff options
author | Daniel Berlin <dberlin@dberlin.org> | 2005-06-01 00:39:49 +0000 |
---|---|---|
committer | Daniel Berlin <dberlin@gcc.gnu.org> | 2005-06-01 00:39:49 +0000 |
commit | f991abd12d6a68ed648edb6e01b34778afd74b6f (patch) | |
tree | 916b04dcdacaf7602bfac6975c23a7d34d9b5870 /gcc/dwarf2out.c | |
parent | 6d0d376c8f4185fabdebfd2d2280444545ffc6ac (diff) | |
download | gcc-f991abd12d6a68ed648edb6e01b34778afd74b6f.zip gcc-f991abd12d6a68ed648edb6e01b34778afd74b6f.tar.gz gcc-f991abd12d6a68ed648edb6e01b34778afd74b6f.tar.bz2 |
c-objc-common.c (c_tree_printer): Check flag before hashtable.
2005-05-30 Daniel Berlin <dberlin@dberlin.org>
* c-objc-common.c (c_tree_printer): Check flag before hashtable.
Use DECL_DEBUG_EXPR and SET_DECL_DEBUG_EXPR.
* dwarf2out.c (dwarf2out_var_location): Ditto.
* toplev.c (default_tree_printer): Ditto.
* tree-outof-ssa.c (create_temp): Ditto.
* tree-sra.c (instantiate_element): Ditto.
* var-tracking.c (track_expr_p): Ditto.
* tree.c (struct tree_map): New structure.
(debug_expr_for_decl): New.
(tree_map_eq): New function.
(tree_map_hash): Ditto.
(tree_map_marked_p): Ditto.
(print_debug_expr_statistics): Ditto.
(decl_debug_expr_lookup): Ditto.
(decl_debug_expr_insert): Ditto.
(dump_tree_statistics): Dump debug_expr hashtable stats.
* tree.h (DECL_DEBUG_EXPR): Change
(SET_DECL_DEBUG_EXPR): Add.
From-SVN: r100417
Diffstat (limited to 'gcc/dwarf2out.c')
-rw-r--r-- | gcc/dwarf2out.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 32711c7..1afe52e 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -13283,7 +13283,7 @@ dwarf2out_var_location (rtx loc_note) last_insn = loc_note; last_label = newloc->label; decl = NOTE_VAR_LOCATION_DECL (loc_note); - if (DECL_DEBUG_EXPR (decl) && DECL_DEBUG_EXPR_IS_FROM (decl) + if (DECL_DEBUG_EXPR_IS_FROM (decl) && DECL_DEBUG_EXPR (decl) && DECL_P (DECL_DEBUG_EXPR (decl))) decl = DECL_DEBUG_EXPR (decl); add_var_loc_to_decl (decl, newloc); |