aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJim Wilson <wilson@gcc.gnu.org>1997-07-08 15:07:41 -0700
committerJim Wilson <wilson@gcc.gnu.org>1997-07-08 15:07:41 -0700
commitf6c74b022514086154ea7172050d84bcdf32b715 (patch)
tree194688f2760ed9d3c23d98088b28a48583b33f5b /gcc
parentbb21487f9bbd3183336c8686e3342bf65265231c (diff)
downloadgcc-f6c74b022514086154ea7172050d84bcdf32b715.zip
gcc-f6c74b022514086154ea7172050d84bcdf32b715.tar.gz
gcc-f6c74b022514086154ea7172050d84bcdf32b715.tar.bz2
(gen_subprogram_die): When handling declarations...
(gen_subprogram_die): When handling declarations, test DECL_CONTEXT not decl_class_context before equate_decl_number_to_die. From-SVN: r14403
Diffstat (limited to 'gcc')
-rw-r--r--gcc/dwarf2out.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index b20683d..290154c 100644
--- a/gcc/dwarf2out.c
+++ b/gcc/dwarf2out.c
@@ -7621,7 +7621,7 @@ gen_subprogram_die (decl, context_die)
the class to which it belongs. We make sure of this by emitting
the class first. The next time is the definition, which is
handled above. The two may come from the same source text. */
- if (decl_class_context (decl))
+ if (DECL_CONTEXT (decl))
equate_decl_number_to_die (decl, subr_die);
}
else if (DECL_ABSTRACT (decl))