[Bug debug/11114] GCC doesn't generate DW_TAG_namespace entries

jason at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Wed Dec 17 16:30:00 GMT 2003


------- Additional Comments From jason at gcc dot gnu dot org  2003-12-17 15:29 -------
Fixed by

2003-12-08  Jason Merrill <jason@redhat.com>
            Daniel Berlin  <dberlin@dberlin.org>

        PR debug/11114
        Support namespaces in DWARF 2 output.
        * dwarf2out.c (gen_namespace_die): New function.
        (force_namespace_die, setup_namespace_context): New fns.
        (declare_in_namespace): New fn.
        (gen_decl_die): Call declare_in_namespace.  Handle namespaces.
        (dwarf2out_decl): Handle namespaces.
        (scope_die_for): Pass through a namespace scope.
        (class_scope_p): Rename to class_or_namespace_scope_p.
        (gen_subprogram_die, gen_variable_die): Adjust.
        (gen_struct_or_union_die): Always emit a declaration
        if context_die is a namespace.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11114



More information about the Gcc-bugs mailing list