From: Jim Wilson Date: Tue, 8 Jul 1997 22:07:41 +0000 (-0700) Subject: (gen_subprogram_die): When handling declarations... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f6c74b022514086154ea7172050d84bcdf32b715;p=gcc.git (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 --- 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))