From f6c74b022514086154ea7172050d84bcdf32b715 Mon Sep 17 00:00:00 2001 From: Jim Wilson Date: Tue, 8 Jul 1997 15:07:41 -0700 Subject: [PATCH] (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 --- gcc/dwarf2out.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index b20683dda17..290154c6980 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)) -- 2.30.2