diff options
author | Jakub Jelinek <jakub@redhat.com> | 2006-01-04 09:05:29 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2006-01-04 09:05:29 +0100 |
commit | 434eba35c00fe13a817a4f799e8b6b1fcb1f8065 (patch) | |
tree | b1683e1d380b9d2469d81bb04642c70217286a89 /gcc/dwarf2out.c | |
parent | 9c3b204ab89bdf9fa42fc0e8b8f3c710f03d35a4 (diff) | |
download | gcc-434eba35c00fe13a817a4f799e8b6b1fcb1f8065.zip gcc-434eba35c00fe13a817a4f799e8b6b1fcb1f8065.tar.gz gcc-434eba35c00fe13a817a4f799e8b6b1fcb1f8065.tar.bz2 |
re PR debug/25562 (cannot debug VLA local)
PR debug/25562
* function.c (instantiate_expr): New function.
(instantiate_decls_1, instantiate_decls): If DECL_HAS_VALUE_EXPR_P,
walk its DECL_VALUE_EXPR with instantiate_expr.
* dwarf2out.c (loc_descriptor_from_tree_1): Don't add
DW_OP_deref{,_size} if address isn't going to be added.
From-SVN: r109315
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 868333d..572bfc9 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -9420,7 +9420,7 @@ loc_descriptor_from_tree_1 (tree loc, int want_address) return 0; /* If we've got an address and don't want one, dereference. */ - if (!want_address && have_address) + if (!want_address && have_address && ret) { HOST_WIDE_INT size = int_size_in_bytes (TREE_TYPE (loc)); |