------- Comment #8 from dodji at gcc dot gnu dot org  2008-10-05 21:30 -------
Subject: Bug 37410

Author: dodji
Date: Sun Oct  5 21:29:32 2008
New Revision: 140895

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=140895
Log:
2008-09-30  Dodji Seketeli  <[EMAIL PROTECTED]>
gcc/ChangeLog:

        PR c++/37410
        * dwarf2out.c (dwarf2out_imported_module_or_decl): Split this
          function in two, making it call a new and reusable
          dwarf2out_imported_module_or_decl() that takes the containing
          BLOCK of the declaration in argument.
          (dwarf2out_imported_module_or_decl_real): New function.
          (decls_for_scope, gen_decl_die, dwarf2out_decl): Take
          IMPORTED_DECL in account.
        * tree.def: Added IMPORTED_DECL node type.
        * tree.h: Added accessors for IMPORTED_DECL nodes.
        * tree.c (init_ttree): Initialise IMPORTED_DECL node type.

gcc/cp/ChangeLog:

        PR c++/37410
        * cp-gimplify.c (cp_gimplify_expr): For each USING_STMT
          make sure an IMPORTED_DECL node is added to the BLOCK_VARS list
          of the innermost containing BLOCK.

gcc/testsuite/ChangeLog:

        PR c++/37410
        * g++.dg/debug/dwarf2/imported-module.C: New test.


Added:
    trunk/gcc/testsuite/g++.dg/debug/dwarf2/imported-module.C
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/cp-gimplify.c
    trunk/gcc/cp/name-lookup.c
    trunk/gcc/dwarf2out.c
    trunk/gcc/print-tree.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree.c
    trunk/gcc/tree.def
    trunk/gcc/tree.h


-- 


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

Reply via email to