Commit f6c74b02 by Jim Wilson

(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
parent bb21487f
...@@ -7621,7 +7621,7 @@ gen_subprogram_die (decl, context_die) ...@@ -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 to which it belongs. We make sure of this by emitting
the class first. The next time is the definition, which is the class first. The next time is the definition, which is
handled above. The two may come from the same source text. */ 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); equate_decl_number_to_die (decl, subr_die);
} }
else if (DECL_ABSTRACT (decl)) else if (DECL_ABSTRACT (decl))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment