aboutsummaryrefslogtreecommitdiff
path: root/gcc/dwarf2out.c
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2006-08-09 06:46:22 +0000
committerAlexandre Oliva <aoliva@gcc.gnu.org>2006-08-09 06:46:22 +0000
commitca7872007455ca2656f14de0feab6f1b95fa4acb (patch)
treedd5e27500927e9429cbe93fc977c40e9e7bbfe34 /gcc/dwarf2out.c
parent88f2d703c749f50a6bc01aab3bf04b508400ddc5 (diff)
downloadgcc-ca7872007455ca2656f14de0feab6f1b95fa4acb.zip
gcc-ca7872007455ca2656f14de0feab6f1b95fa4acb.tar.gz
gcc-ca7872007455ca2656f14de0feab6f1b95fa4acb.tar.bz2
var-tracking.c (enum micro_operation_type): Add MO_COPY.
* var-tracking.c (enum micro_operation_type): Add MO_COPY. (var_debug_decl): New function. (var_reg_set): Follow debug decl link. Add location even if reg is already known to hold some other variable. (var_mem_set): Follow debug decl link. (var_reg_delete_and_set, var_mem_delete_and_set): Follow debug decl link. Delete other known locations of the variable part if requested. (var_reg_delete, var_mem_delete): Delete other known locations of the variable part if requested. (same_variable_part_p): New function. (add_stores): Select MO_COPY when appropriate. (vt_initialize): Handle it. (compute_bb_dataflow, emit_notes_in_bb): Likewise. Delete known locations for MO_SET and MO_CLOBBER. (find_variable_location_part): New function. (set_variable_part, delete_variable_part): Use it. (clobber_variable_part): New function. * dwarf2out.c (dwarf2out_var_location): Do not follow debug decl link. From-SVN: r116031
Diffstat (limited to 'gcc/dwarf2out.c')
-rw-r--r--gcc/dwarf2out.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index acec886..896f853 100644
--- a/gcc/dwarf2out.c
+++ b/gcc/dwarf2out.c
@@ -13551,9 +13551,6 @@ 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_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);
}