diff options
author | Jakub Jelinek <jakub@redhat.com> | 2008-08-29 20:43:57 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2008-08-29 20:43:57 +0200 |
commit | 25c29c56e24dd8f455b01907005fbdf613ea8aa8 (patch) | |
tree | e922fdce8f61d2ccd258acbf79748a4b8fd3bc03 /gcc/dwarf2out.c | |
parent | a64f5186dd1a3ea27bc7540c625ab24afd8030a3 (diff) | |
download | gcc-25c29c56e24dd8f455b01907005fbdf613ea8aa8.zip gcc-25c29c56e24dd8f455b01907005fbdf613ea8aa8.tar.gz gcc-25c29c56e24dd8f455b01907005fbdf613ea8aa8.tar.bz2 |
trans-decl.c (gfc_build_qualified_array): Build non-flat array type for debug info purposes.
* trans-decl.c (gfc_build_qualified_array): Build non-flat
array type for debug info purposes.
* dwarf2out.c (add_bound_info): If lookup_decl_die failed, try
loc_descriptor_from_tree_1.
From-SVN: r139774
Diffstat (limited to 'gcc/dwarf2out.c')
-rw-r--r-- | gcc/dwarf2out.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index cc27e39..4c6364c 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -11934,6 +11934,7 @@ add_bound_info (dw_die_ref subrange_die, enum dwarf_attribute bound_attr, tree b case RESULT_DECL: { dw_die_ref decl_die = lookup_decl_die (bound); + dw_loc_descr_ref loc; /* ??? Can this happen, or should the variable have been bound first? Probably it can, since I imagine that we try to create @@ -11942,6 +11943,11 @@ add_bound_info (dw_die_ref subrange_die, enum dwarf_attribute bound_attr, tree b later parameter. */ if (decl_die != NULL) add_AT_die_ref (subrange_die, bound_attr, decl_die); + else + { + loc = loc_descriptor_from_tree_1 (bound, 0); + add_AT_location_description (subrange_die, bound_attr, loc); + } break; } |