This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug debug/39471] DW_TAG_imported_module should be used (not DW_TAG_imported_declaration)



------- Comment #13 from jakub at gcc dot gnu dot org  2009-03-17 17:49 -------
Subject: Bug 39471

Author: jakub
Date: Tue Mar 17 17:49:28 2009
New Revision: 144911

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=144911
Log:
        PR debug/39471
        * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Emit
        DW_TAG_imported_module even if decl is IMPORTED_DECL with
        NAMESPACE_DECL in its DECL_INITIAL.

        * cp-gimplify.c (cp_gimplify_expr): Don't set DECL_NAME
        on IMPORTED_DECL.

        * g++.dg/debug/dwarf2/imported-module-2.C: Expect
        DW_TAG_imported_module, not just any DW_TAG_imported prefixed tag.
        * g++.dg/debug/dwarf2/imported-module-3.C: Likewise.
        * g++.dg/debug/dwarf2/imported-module-4.C: Likewise.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/cp-gimplify.c
    trunk/gcc/dwarf2out.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/g++.dg/debug/dwarf2/imported-module-2.C
    trunk/gcc/testsuite/g++.dg/debug/dwarf2/imported-module-3.C
    trunk/gcc/testsuite/g++.dg/debug/dwarf2/imported-module-4.C


-- 


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]