(gen_subprogram_die): When handling declarations...
authorJim Wilson <wilson@gcc.gnu.org>
Tue, 8 Jul 1997 22:07:41 +0000 (15:07 -0700)
committerJim Wilson <wilson@gcc.gnu.org>
Tue, 8 Jul 1997 22:07:41 +0000 (15:07 -0700)
(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

index b20683dda1785e338e9074ad8806404a979133c0..290154c6980d9a72c027bea7c6b1696262e8a96a 100644 (file)
@@ -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))